linker command failed with exit code 1 --- directory not found for option '.....[configuration_name]_iphonesimulator/xxx'
Closed this issue · 1 comments
Steps to reproduce the behavior
First thank you for your work on this nice library.
My package.json has added the following:
...
"scripts": {
......
"postinstall": "react-native-schemes-manager all"
},
"xcodeSchemes": {
"Debug": [
"StagingDebug"
],
"Release": [
"StagingRelease"
],
"projectDirectory": "ios",
"settings": {}
},
...
After editing the package.json I duplicated the configuration Debug
and Release
on my Xcode workspace. I also duplicated the scheme, pointed it to StagingDebug
and made sure it is with build options Parallelize Build
unchecked, and React
is on the top of the build target list. And I run npm run postinstall
.
Expected behavior
It should work. I tried to go though the same steps on a clean project "AwesomeProject" created by react-native init AwesomeProject
and everything works like a charm.
I think it may because of react-native-config that I used in this project.
Actual behavior
Only able to build the old scheme with old configration. Fail to build the scheme with new configuration. The error is as screenshot below. And some libraries' folders are not generated in StagingDebug-iphonesimulator
Oh I solved the problem by running pod install
after comment out pod 'react-native-config', :path => '../node_modules/react-native-config'
If I run pod install
without comment the line, I got 'GeneratedDotEnv.m' file not found
. Hope this can help someone who have the same problem.