slack-digest/2022-10-18.md
Tue, 18 Oct 2022 08:23:29 GMT
Join the conversation at slack.cordova.io
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 iosI 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><config> <source url="<https://cdn.cocoapods.org/>" /> </config> <pods> <pod name="BraintreeDropIn" /> </pods> </podspec>```
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