-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[V2] Build error in Xcode 10 "Multiple commands produce..." #3608
Comments
I have further issues with clean project, like facebook/react-native#14382 etc. Maybe time to upgrade to RN 0.56.0 and try to get that stable? |
copy only when installing did the trick for me. Thanks! 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
The issue has been closed for inactivity. |
Possible temp Fix: facebook/react-native#20492 (comment)
|
Check "Copy only when installing" |
"Copy only when installing" works, however if you have a CI pipeline, or ever remove node modules folder and reinstall you'll need to do this step again (and again, and again). We ended up adding a postinstall script to our package.json that updates Ticking 'Copy only when installing' changes the following lines in this file: Line 315 Line 322 We're just keeping a copy of the 'ticked' version of this project file in a scripts folder and are copying it across afterwards. Works like a charm xcode_10_setup.sh if [ ! -d "node_modules/react-native/third-party" ]; then
cd node_modules/react-native ; ./scripts/ios-install-third-party.sh ; cd ../../
fi
RNN_PROJECT_PATH='./node_modules/react-native-navigation/lib/ios/ReactNativeNavigation.xcodeproj/project.pbxproj'
cp -f ./scripts/rnn_project.pbxproj $RNN_PROJECT_PATH |
I made a git patch file: filename react-native-navigation+2.1.2.patch:
Then on post install I do: Until that's fixed, this works fine for me. |
This is some how buggy but the solution by birkir works for me on ios. Thanks. |
I didn't found Check "Copy only when installing" option in xcode 10.1 |
You have to click ReactNativeNavigation.xcodeproj > Targets (ReactNativeNavigation) > Build Phases > Copy Files |
This option is not available in 10.1 xcode
…On Thu, Nov 22, 2018, 1:20 PM Chia Yu Pai ***@***.*** wrote:
I didn't found Check "Copy only when installing" option in xcode 10.1
You have to click ReactNativeNavigation.xcodeproj > Targets
(ReactNativeNavigation) > Build Phases > Copy Files
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3608 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbWpQhbkAHAMCvuovdOV14ys4_Ylv85wks5uxldJgaJpZM4Va98A>
.
|
@smartdev619 I'm using Xcode 10.1 and I was able to find it. Follow exactly the steps mentioned by @fantasywind. |
After the "copy only when installing" solution, I was facing the following error: |
@platonish @fantasywind I neither can see Targets when selecting Here is the screenshot: EDIT |
@nekdev i'm using RNN version
Worked for me |
Using RN 0.60.4 and RNN v3 Alpha 8, I got the same issue when building through CI. On local XCode it was working fine and also when building with react-native run-ios, the issue was only happening when using Fastlane + Bitrise. Logs here:
Lib wasn't installed via CocoaPods, it was manually linked. I fixed it by not linking it manually or via CocoaPods, it should be auto-linked now. I removed all the references I originally had added when linking the project. I feel like maybe we could have a more detailed set of instructions for the latest version of RN, due to the changes with how libraries are linked. I could collaborate by going over the steps on a new project. Note: I didn't try it, but I assume that using Legacy Build System from XCode (in Bitrise's stack) would have masked the issue, but since this is a new project we don't encourage using anything that has been declared as legacy. |
@eduardopelitti Any luck solving this? Happens to us also in Bitrise. |
Hi, I fixed it by removing the manual link of the library and removing it from CocoaPods as well. I removed all references to RNN in my iOS Setup, except the reference in the Header Search path. And in my Podfile I have:
In Bitrise you could try to use the Legacy Build System from the stack (Xcode 9.4) if it still available. This is of course not ideal. Let me know if it helped. |
this worked for me, Thanks a lot @adjoaEdwin |
fixed my issue doing this set "Build System" to "Legacy Build System" in "Shared Workspace Settings" which you can find in "File --> Workspace Settings" |
Issue Description
After following the installation instructions multiple times and clearing caches in between I still get build errors in Xcode 10:
Steps to Reproduce / Code Snippets / Screenshots
Environment
react-native-navigation
installedThe text was updated successfully, but these errors were encountered: