-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple commands produce (...) Xcode 11, using 2 targets #560
Comments
The same happened here. My solution was to create a different generated file for each target, so ultimately I got: A) For the production environment the script is: B) For the staging environment the script is: Upon changing, I had to rebuild the project in each target, add the newly generated At least for now, this seems like it solved it, if you guys find any drawbacks on the solution let me know :) |
@RodrigoLGuimaraes For me, using the Legacy Build System works, the bug is only with New Build System. |
I experienced the same issue, however, I believe that the problem is not really on the |
For me, I have R.swift build phase in 2 targets. Removing it in 1 works for me |
@RodrigoLGuimaraes Monster Kill!!!! Best Answer! Saved my life today!
|
Yeah totally saved me too. I really think this should be in the main page of the FAQS within the documentation on how to integrate R.swift into multiple targets where some files are shared between multiple targets. I'm sure it's a common theme for big production apps. |
@branohricardo I have this issue now with my unit test. How to proceed with this? |
My project use 2 targets
MyApp
andMyAppDev
both has the R.swift script to generate the file.After Xcode 11 I'm receiving this error when I try run with fastlane.
❌ error: Multiple commands produce '/Users/narlei/sources/ios/mobile-app-ios/MyApp/R.generated.swift':
Testing failed:
Multiple commands produce '/Users/narlei/sources/ios/mobile-app-ios/MyApp/R.generated.swift':
That command depends on command in Target 'MyApp' (project 'MyApp'): script phase “R.swift”
That command depends on command in Target 'MyAppDev' (project 'MyApp'): script phase “R.swift”
Testing cancelled because the build failed.
The text was updated successfully, but these errors were encountered: