launchdarkly / react-native-client-sdk

LaunchDarkly Client-side SDK for React Native
Other
45 stars 32 forks source link

xcode 15.1 - underlying Objective-C module 'LDSwiftEventSource' not found #239

Closed JeffKGabriel closed 4 months ago

JeffKGabriel commented 6 months ago

Describe the bug xcode 15.1 build error:

LDSwiftEventSource.private.swiftinterface line1 : failed to verify module interface of 'LDSwiftEventSource' line6 : underlying Objective-C module 'LDSwiftEventSource' not found

LDSwiftEventSource.swiftinterface line1 : failed to verify module interface of 'LDSwiftEventSource' line6 : underlying Objective-C module 'LDSwiftEventSource' not found

(same 2 errors come from both LDSwiftEventSource & .private)

To reproduce i have tried to even use the 8.1.0 release branch as it states it is prepared for xcode 15.1 [sonoma 14.2 macos forces 15.1 :') ]

ie package.json "launchdarkly-react-native-client-sdk": "git://github.com/launchdarkly/react-native-client-sdk.git#77edf0f16c45f8f9e8167ad88767da678fa480e7", (current commit hash of /tree/release-8.1.0)

SDK version my podfile.lock includes

OS/platform MacOS Sonoma 14.2

upgraded from 7.1.1 to 8.0.1 to try to fix xcode 15.1 build errors, nothing yet- Sonoma 14.2 os was updated overnight automatically, so is unfortunate, might downgrade back to previous macOS if have too,

Let me know if im overlooking something, or something to try

louis-launchdarkly commented 6 months ago

Hello @JeffKGabriel, thank you for reporting the issue - we will update the build test and verify before getting back to you.

louis-launchdarkly commented 6 months ago

We just released v8.0.2, with the CircleCI test updated to use their Xcode 15.1.0 image. The test didn't show any issue: https://github.com/launchdarkly/react-native-client-sdk/runs/19838059832 - So I am not sure can LaunchDarkly helps here

Have you tried to clean your project before rebuilding the application?

JeffKGabriel commented 6 months ago

Hmm okay thanks- i will check circleCI build for any differences here

Yes to clean & even remove ~/Library/Developer/Xcode/DerivedData and ~/Library/Caches/CocoaPods

Will poke around and let you know- thanks!

github-actions[bot] commented 4 months ago

This issue is marked as stale because it has been open for 30 days without activity. Remove the stale label or comment, or this will be closed in 7 days.