I have pushed a page on npm but whenever I try to link it on a sample application it get
"Cannot read property 'buildConfigurationList' of undefined" when I link it using
react-native link mypackage whereas manual linking works fine.
Environment:
OS: macOS High Sierra 10.13.4
Node: 9.10.1
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ^0.55.1 => 0.55.1
Just install an npm package and link it
Steps :-
npm i package-name --save
react-native link package-name
It should get linked without any error
I get the above error i.e
"Cannot read property 'buildConfigurationList' of undefined"
This issue looks like a question that would be best asked on Stack Overflow.
Stack Overflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on Stack Overflow.
Did anyone find a solution?
Yes one way is to manually link your library using the steps in the link below:-
https://facebook.github.io/react-native/docs/linking-libraries-ios.html
Just in case anyone comes here again: We were seeing this error because we had multiple targets set up in our Xcode project. react-native-link has a hard time dealing with that.