-
Notifications
You must be signed in to change notification settings - Fork 45
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
iOS: Undefined symbols for architecture x86_64/arm64 #41
Comments
Hello @WNemencha! Can you please check if the same happens if you try to build our sample app on your machine? Also can you please tell which XCode version you are using? |
Hey @0xnm, I've just tried to run your sample app and it seems to be compiling and running but I still can't receive any log inside my test DataDog account (in the RUM apps section). I've been trying to fix this issue since yesterday and now that I think about it, it looks more like a Swift error to me, currently investigating ;). About XCode: Version 12.4 (12D4e) |
hi @WNemencha 👋 ProblemSwift frameworks can't be linked statically in pure Obj-C projects. React Native was keeping an empty Fixplease check that
if so, can you please replace let me know if that works (or not!) for you and/or if you have any other questions |
You know what ? It works! Thanks dear @buranmert, you saved the sprint :) |
@WNemencha good news 👍 |
I have been getting the exact same issue. While it will build after making the change listed in this issue, the app just closes out immediately afterwards when you attempt to load it.
I've tried going to Build Settings in the target and changing |
hi @papaschmidt i guess can you tell me which React Native, Xcode and iOS version you are using? |
Hello @buranmert , I am on the following: react-native: 0.64.2 We don't have any custom swift code that we wrote in this code base, however, some of our 3rd party libraries might have swift code. This is our first attempt at integrating DataDog SDK into our project as we're looking to add it to our app for logging, so I haven't gotten it to work yet. I did have to add a USER_DEFINED property |
I thought this solution #41 (comment) for me didn't work until I realized I was looking at my Target's Build Settings and not my App's. |
Hello, Our team was able to figure this out. For anyone who runs into this issue in the future. You need to have a bridging header in your react-native project. You just need to add an empty swift file to your project and during the process of it being added xCode will ask you if you want to create a bridging header - just click yes. |
@papaschmidt I am running into this issue now. We have already created a bridging header in the project. Is the current solution still to replace That seemed to work when changing it. Ideally we don't have to change these settings as I have had bad experiences keeping track of these core tooling changes for specific dependencies. What happens in the future if we were to bring on another dependency and it doesn't work because we replaced the default search path? Will there be a solution in the near future where we don't have to change the search paths in Xcode? |
@quachdev we raised a PR in React Native repo to fix the issue for everyone but it didn't get enough attention unfortunately. |
FYI, the
|
Hello, DataDog team! :)
Describe what happened:
When trying to compile our app for iOS (react-native app), with freshly yarn added
dd-sdk-reactnative
, it fails with the following error:Steps to reproduce the issue:
dd-sdk-reactnative
in a react-native v0.63.4 project (ios/android)cd ios/ && pod install
react-native run-ios
Describe what you expected:
I expected the build to succeed, as the one for Android does.
Additional context:
"dd-sdk-reactnative": "^1.0.0-alpha5",
The text was updated successfully, but these errors were encountered: