Back to Cordova

2022 10 18

slack-digest/2022-10-18.md

latest1.7 KB
Original Source

Cordova Slack Digest

Tue, 18 Oct 2022 08:23:29 GMT

User count: 4707

Join the conversation at slack.cordova.io

Channel #cordova-ios (5 messages)


Tue, 18 Oct 2022 07:10:27 GMT

@hoelt says

Hello there, I'm building a cordova plugin which uses CocoaPods for adding an external framework. When building from Xcode it works fine, when building from the command line using cordova build ios I get an error: FRAMEWORKNAME.modulemap not found. Not sure what this is about, any idea?

Tue, 18 Oct 2022 07:11:10 GMT

@hoelt says

Extract from plugin.xml:

<podspec>
  &lt;config&gt;
    &lt;source url="<https://cdn.cocoapods.org/>" /&gt;
  &lt;/config&gt;
  &lt;pods&gt;
    &lt;pod name="BraintreeDropIn" /&gt;
  &lt;/pods&gt;
&lt;/podspec&gt;```

Tue, 18 Oct 2022 07:12:07 GMT

@hoelt says

The error:

fatal
/Users/me/Library/Developer/Xcode/DerivedData/DemoSX-cchzswqwgnhuloevimblojdgnccw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/BraintreeDropIn.build/Objects-normal/arm64/BTVaultManagementViewController.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'BraintreeDropIn' from project 'Pods')```

Tue, 18 Oct 2022 07:12:33 GMT

@hoelt says

Again, works fine in XCode, the error only happen when building with cordova cli

Tue, 18 Oct 2022 07:12:41 GMT

@hoelt says

Thanks