Skip to content
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

Build errors: cannot load underlying module for 'LDSwiftEventSource' #230

Closed
jskrepnek opened this issue Nov 20, 2020 · 1 comment
Closed

Comments

@jskrepnek
Copy link

Describe the bug
When building for a device, using command-line tools via Cordova's CLI, the xcodebuild is failing. The errors all seem to stem from missing module files.

The error is not reproducible when building for a simulator via Cordova's CLI. The error is not reproducible when opening the workspace in Xcode and building or archiving for a device.

To reproduce
Integrate LaunchDarkly with a Cordova project via Cocoapods and build for a device.

Expected behavior
Build succeeds.

Logs
The following error is encountered numerous times:

<unknown>:0: error: module map file '<snip>/BuildProductsPath/Debug-iphoneos/LDSwiftEventSource/LDSwiftEventSource.modulemap' not found
<unknown>:0: error: module map file '<snip>/BuildProductsPath/Debug-iphoneos/LDSwiftEventSource/LDSwiftEventSource.modulemap' not found
<unknown>:0: error: underlying Objective-C module 'LaunchDarkly' not found
<snip>/Pods/LaunchDarkly/LaunchDarkly/LaunchDarkly/Service Objects/ClientServiceFactory.swift:9:8: error: cannot load underlying module for 'LDSwiftEventSource'
import LDSwiftEventSource

SDK version
5.3.0

Language version, developer tools

  • Cordova CLI 9
  • Cordova iOS 6.1.1
  • Xcode 12.0.1
  • Cocoapods 1.10.0

OS/platform

  • macOS 10.15.7

Additional context
I understand that LaunchDarkly does not offer a Cordova integration. I understand and am not expecting support specific to Cordova. However, the product of Cordova's tooling is an Xcode project like any other and the CLI ultimately is calling xcodebuild, so I'm hoping to investigate that from this point of view and then I can figure out how to apply any finding back to the Cordova tool chain.

@bwoskow-ld
Copy link
Member

Hello,

I see that you've filed this issue with LaunchDarkly's support team as well. As that ticket has additional information such as your build logs, let's consolidate the conversation over there.

Cheers,
@bwoskow-ld

louis-launchdarkly added a commit that referenced this issue Feb 28, 2023
The event payload based on our specifications should only have `redactedAttributes`, not `privateAttributes` in the payload. No private attribute values were sent even before this fix, only the field names were duplicated.
Please see the Slack threads linked in the shortcut ticket for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants