-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.45.0] + [0.46.0-rc.2] fails to compile folly: Undefined symbols for architecture x86_64 #14328
Comments
Any help here? I've tried just about everything:
All to no avail. @ericvicenti @javache @vjeux @lelandrichardson: The thirdparty changes included in 0.45+ have broken swift and objc projects with cocoapods. I realize that fb doesn't use swift, but more and more teams are in this camp and so any advice or potential fixes you can think of would be greatly appreciated. |
The compilation error you mention should be fixed by 2766103. Can you check if those changes are present in your copy? |
We are having the same issue after upgrade from rn-0.44.2 to rn-45.1. @javache I checked react-native in node_modules, and the changes from 2766103 are present, but we still get the errors. Similar as with @sjmueller, we tried all the steps to clean up the project before getting to this issue. |
@javache I have prepared a barebones swift 3 project with RN rn46-swift-3rd-party-errors.zip
You should now be able to reproduce the error: |
@javache I have upgraded from 0.44.3 to 0.45.1 and I am experiencing the same linker error as @sjmueller. My project is Objective-C based and I am using CocoaPod. Looking at the linker warnings, there seems to be path misconfiguration? "ios" part is being repeated in the path. |
Sorry you have the same issue @daesan -- didn't know until now that objc projects with cocoapods are affected too. I originally thought it was just swift. |
FYI our swift project does not use cocoapods at all. |
There's two problems here:
|
Thanks for chiming in @mhorowitz. As mentioned above, I tried every combination of Linker Flags. For the record, I have never been able to get a swift project to work with react native using just
|
Actually, the error above is caused by AppTransportSecurity -- i forgot to add the exception:
After updating info.plist, I get the error:
These are not errors I recall seeing before. For reference, the error is the same for |
Removing |
@mhorowitz FYI removing File.cpp from third-party Compile Source indeed fixes the problem 🎉 -- I tried with our full project. There are some other problems now with the packager for |
Summary: This fixes #14328 Reviewed By: javache Differential Revision: D5254711 fbshipit-source-id: e9b81e537cca9d6648f44ed61acd127015d2e1f8
Having a problem compiling react native 0.45 & 0.46-rc.2 during the linking phase:
I've never seen errors in RN related to folly, so not really sure what has changed from 0.44 to 0.45 that would cause this type of compilation error. My best guess could be from this commit 885856c that's trying to fix the Travis build, but it does a bunch of stuff with conditional includes that I don't understand.
Our RN xcode project is in swift, so maybe the difference is why these errors snuck through without detection?
cc @ericvicenti @javache
The text was updated successfully, but these errors were encountered: