-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
xcodebuild warning in 0.48.3: The file reference for "libReact-tvOS.a" is a member of multiple groups ("Products" and "Products") #16061
Comments
I'm seeing the exact same error. And Xcode 9 will try to fix the corrupted |
I'm seeing this in v0.49.0 as well. |
I am seeing the same in v.0.49.3 |
it happens to me totally the same react-native-cli: 2.0.1 |
same here! Xcode 9 |
Me too: Xcode: Version 9.0.1 (9A1004) |
I still get an error when running npm run ios 2017-12-29 22:30:30.136 xcodebuild[1155:23978] warning: The file reference for "libReact-tvOS.a" is a member of multiple groups ("Products" and "Products"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path. |
Sorry for the trouble with this... the fix is in PR #17231 . If you want to get the fix immediately, you can use "react-native": "https://github.com/dlowder-salesforce/react-native#tvos-cli-link-fix-2", in your package.json. Otherwise, you can wait for this branch to get merged to a release version. |
I'm not sure why, but I wasn't able to use the package.json temporary fix above.
When the 'xcodeproj' library reads the project, it also recognizes the 'libReact-tvOS.a' PBXBuildFile entry that was misnamed as 'libReact.a' and it will rename it automatically, so there was no need to add code to fix that problem. |
@dlowder-salesforce just tested on RN 52 for existing and new projects - can't see the message anymore. So I think it is fixed. Should I close? |
@vshab yes you can close this |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12.5
Node: 8.2.1
Yarn: 0.27.5
npm: 5.3.0
Watchman: 4.7.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.3 => 0.48.3
Steps to Reproduce
Expected Behavior
Build without warnings.
Actual Behavior
There is a warning in the very beginning of the build:
2017-09-22 02:36:04.856 xcodebuild[22182:165516] warning: The file reference for "libReact-tvOS.a" is a member of multiple groups ("Products" and "Products"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.
I've tried upgrading existing project and creating new one. There is no warning when building with react-native 0.47.2.
Reproducible Demo
Just a freshly created react native project.
https://github.com/vshab/react-native-0.48-build-warning
The text was updated successfully, but these errors were encountered: