-
Notifications
You must be signed in to change notification settings - Fork 32
Unable to compile on iOS #1
Comments
Hi @PerThomasHaga our beta Swift SDK was updated and some breaking changes occurred. Try adding the tag for the previous iOS Swift beta release to your Podfile |
Thank you for the answer, @torchhound. Sadly it didn't remove the error. Can you reproduce it by making a clean project and adding launchdarkly-react-native-client? |
@PerThomasHaga I used very similar steps with the exception of |
I am having the same issue. For me, I need to set
|
Sidenote: When I try to build LaunchDarklyReactNativeClient, I get the error
|
I'm also seeing this. Did anyone find the issue or a workaround? |
As @torchhound implied it was something wrong with the linking. I managed to get it compiling by adding |
Thanks for that. Adding that header search path DID remove one of the errors I was having. But I still have the following error while building LaunchdarklyReactNativeClient:
|
@BG687 that might be a caching error, I'll try and investigate and reproduce. I've run into that error while testing the React Native client against iOS client |
@PerThomasHaga is this issue resolved for you? It sounds like other commenters have different build problems. |
I'm a colleague of @PerThomasHaga, and we managed to power through this issue or so it seems. After we stumbled into the issue in #2 , we are now facing an issue where after Xcode upgrades to 10.2, LDClient refuses to compile due to incompatible Swift versions. Are these all separate issues? |
@testower I'm currently running Xcode 10.1, we haven't tested with 10.2. I'll look into this but for right now my only suggestion is downgrading to 10.1. |
@torchhound Even though I set the tag to However, requiring React to use modular headers created issues in a different dependency in our project... |
@BG687 I'm glad that was resolved, I'll update the documentation accordingly. Would you please elaborate on the modular headers issue? |
Cheers @torchhound , I have successfully managed to compile on Xcode 10.1 after downgrading, and with workaround for #2 in place the bundler is also successful. However, when trying to use LDClient now we get the following runtime warning from RN: I've tried re-linking, cleaning and reinstalling pods, to no avail. Any idea what might be going on here? |
I have managed to solve the issues above by downgrading to However, I still don't seem to be able to build the project I have set up the PodFile as suggested, and run However, whenever I try and build the project in XCode (10.1) I get a bunch of errors such as:-
I have fiddled and googled but I just can't seem to work it out Any thoughts? |
@OpsBaseCTO those errors are associated with unlinked libraries in React Native. This is an issue with React Native not the LaunchDarkly package. Here are some links to the bugs: Link JS.core and Link glog and Double Conversion. The hello-react-native ios workspace has all of the correct libraries linked. |
@OpsBaseCTO If I remember correctly I also had those issues that I fixed by downgrading Cocoapods from 1.6.1 to 1.5.3. So you can try that if you still haven't fixed it. @torchhound you can close this issue If you want. |
@PerThomasHaga thanks for the heads up! If you or any other commenters has any more problems don't hesitate to recomment, open a new issue, or contact support. |
Hi @mcatmos, I believe that your issue should be resolved if you update your Podfile to: |
Hello!
I am unable to build the project on iOS. I am trying to get it built on a clean project with the following steps:
I change the Podfile to the following:
as instructed in the docs, and run
pod install
.I open LaunchDarklyTest.xcworkspace with Xcode and compile the project.
I then receive the following error:
My environment info:
The text was updated successfully, but these errors were encountered: