swift – EAS iOS construct fails with Fastlane error: “error extracting model from module interface”
[ad_1]
Requested
Considered
15 occasions
- Managed Workflow
eas-cli
model is0.60.0
Objective: embed third-party native library as npm
bundle to a managed Expo undertaking.
What I’ve: the library offered by vendor as a .xcframework
for iOS (Swift) and .aab
file for Android.
What I did:
- generated a template for customized React Native library utilizing
npx create-react-native-library
command. - added
.aab
and.xcframework
information to applicable folders. - offered implementation in
Java
andSwift
for each platforms. - constructed library regionally.
- previous to publish my RN bundle to a non-public GH repo I examined library in
instance
app which was generated bycreate-react-native-library
, to make sure that all the pieces works proper. - instance app works as anticipated.
- printed RN bundle to a repo and put in it into my Expo undertaking.
- STUCK ON THIS STEP: I attempt to construct customized dev shopper utilizing
eas construct
command. And the construct fails.
❌ (/Customers/expo/workingdir/construct/app/node_modules/@bridgemoney/react-native-sardine/ios/ReactNativeSardine.swift:2:8)
1 | import Basis
> 2 | import MobileIntelligence
| ^ error extracting model from module interface
3 |
4 | @objc(ReactNativeSardine)
5 | class ReactNativeSardine: RCTEventEmitter {
❌ (/Customers/expo/Library/Developer/Xcode/DerivedData/BridgeGo-cyholdfvmztnmecppglqrfgqcshq/Construct/Intermediates.noindex/ArchiveIntermediates/BridgeGo/BuildProductsPath/Debug-iphoneos/XCFrameworkIntermediates/bridgemoney-react-native-sardine/MobileIntelligence.framework/Modules/MobileIntelligence.swiftmodule/arm64-apple-ios.swiftinterface:1:1)
> 1 | // swift-interface-format-version: 1.0
| ^ error extracting model from module interface
2 | // swift-compiler-version: Apple Swift model 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
3 | // swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name MobileIntelligence
4 | import AdSupport
▸ ** ARCHIVE FAILED **
▸ The next construct instructions failed:
▸ CompileSwift regular arm64 /Customers/expo/workingdir/construct/app/node_modules/@bridgemoney/react-native-sardine/ios/ReactNativeSardine.swift (in goal 'bridgemoney-react-native-sardine' from undertaking 'Pods')
▸ EmitSwiftModule regular arm64 (in goal 'bridgemoney-react-native-sardine' from undertaking 'Pods')
▸ CompileSwiftSources regular arm64 com.apple.xcode.instruments.swift.compiler (in goal 'bridgemoney-react-native-sardine' from undertaking 'Pods')
▸ (3 failures)
Do anybody know what does this imply and the right way to repair this?
Extra context:
- I take advantage of
newest
picture for iOS ineas.json
file with XCode 13.4 and Swift 5.6.1 - instance RN app compiles and works as anticipated with my customized library. On my native Mac I take advantage of XCode 13.4.1 and Swift 5.6.1 as properly.
lang-swift
[ad_2]