#business-terminal-ios
1 messages · Page 1 of 1 (latest)
business-terminal-ios
@atomic comet can you provide a bit more details? Which exact doc are you following? Do you have more than a picture? How familiar are you yourself with iOS development?
I'm following this - https://github.com/stripe/stripe-terminal-ios#try-the-example-app
I am not very familiar with iOS development
What other details can I provide that would help?
We're looking into it. sorry that error message is cryptic and we have never seen it. Have you tried cleaning the build and trying again?
I tried cleaning the build just now and same issue
Yeah it's a very frustrating error with a lot of causes, I don't even think it has anything to do with the Stripe SDK but I wanted to ask on the off chance someone has run across it before
`Multiple commands produce '/Users/tyler/Library/Developer/Xcode/DerivedData/Example-asfvjoiceolhpzebuyfcwzgotnhh/Build/Products/Debug-iphonesimulator/Example.app/Frameworks/StripeTerminal.framework'
Target 'Example' (project 'Example') has copy command from '/Users/tyler/etc/stripe-terminal-ios/Example/StripeTerminal.xcframework/ios-arm64_x86_64-simulator/StripeTerminal.framework' to '/Users/tyler/Library/Developer/Xcode/DerivedData/Example-asfvjoiceolhpzebuyfcwzgotnhh/Build/Products/Debug-iphonesimulator/Example.app/Frameworks/StripeTerminal.framework'`
There's copypaste of the errors
Hey I am helping look in to this too. Was just able to build from a fresh download of the repo. To be clear did you open the Example.xcworkspace file with XCode? The project build properly for me but my XCode window looks decently different from yours
Also I was able to install and use the SDK on a fresh new Swift application, just not able to build the example app
Yes I opened using the .xcworkspace
Gotcha. And what XCode version are you on?
Gotcha, thank you. Not sure on that either though this seems more like build targets in the workspace itself
That makes sense
How are you building to just a build target? Was that the default somehow? When I try myself I get this error
Have you tried selecting a simulator or your phone as the build target?
It must have been the default
I tried both a iphone 12 simulator and my physical iphone 12 mini as a build target
I tried checking this box and got some different errors, let me send them
Did you make any modifications after downloading the repo before you first build it?
Only changed the backend API endpoint -
In AppDelegate.swift, set the URL of the Heroku app you just deployed.
`/Users/tyler/Library/Developer/Xcode/DerivedData/Example-asfvjoiceolhpzebuyfcwzgotnhh/Build/Products/Debug-iphonesimulator/StripeTerminal.framework/Modules/StripeTerminal.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:10:8: No such module '_StringProcessing'
/Users/tyler/etc/stripe-terminal-ios/Example/Example/RootViewController.swift:10:8: Failed to build module 'StripeTerminal'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)', while this compiler is 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)'). Please select a toolchain which matches the SDK.
/Users/tyler/Library/Developer/Xcode/DerivedData/Example-asfvjoiceolhpzebuyfcwzgotnhh/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/StripeTerminal/StripeTerminal.framework/Modules/StripeTerminal.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:10:8: No such module '_StringProcessing'
Command EmitSwiftModule failed with a nonzero exit code`
That is very interesting. So just unchecking that "copy" checkbox caused you to get an error about compilier versions?
Checking it gives the compiler version errors
Unchecking it gives the original error
Can you try keeping that box unchecked and following the "update to recommended settings" prompts that are showing up with your warnings?
That fixed the warnings but still getting the errors
And that is with the "copy" box checked, right? I don't think that aspect is necessary here. I don't think unchecking will fix, still trying to think of why you are getting an error based on the multiple commands producing the same thing
Though upgrading to that 5.7 swift compiler to get rid of this error could be helpful
Yeah I need to figure out how to do that
Yes that was all with the copy box checked
Would it be feasible for you to update XCode to 14? It is looking like you can update just the CLI tools and that might be helpful, but if you don't have other projects relying on that older version upgrading may be helpful
I found this article on upgrading just the toolchain but am admittedly not familiar enough with iOS development to know how well this may work for you
Yeah I'll just upgrade the whole thing, I'm surprised I wasn't on the latest version considering I installed xcode a few days ago
Awesome, let me know if that helps. I'm on 14.0 and the project build for me straight away
Hey, I'm going to archive this thread for now. because upgrading XCode can take a bit. If you see any further issues, please ping about them in the #dev-help channel again and someone who is familiar with iOS will be able to help you
Sounds good thank you for all the help!
Of course, thank you for your time as well!