Post

Replies

Boosts

Views

Activity

XCFramework "Cannot load underlying module"
I've built an SDK (which has dependencies) and packaged it up as an XCFramework for clients' use, but when I test it in a project, I'm getting: ...SDK.swiftmodule/arm64-apple-ios.swiftinterface:20:8: Cannot load underlying module for... This occurs in the Compile Swift Sources action and the break is in the import DepedencySDK statement in the swiftinterface file In the SDK project and the demo, the dependencies are loaded into the project via cocoapods. Any ideas? Or suggestions on how to debug this further? Thanks!
1
0
4.2k
Jan ’22
Static XCFramework won't link to its dependencies in a project
I have an SDK that is a static xcframework built against 3 pods (which are configured as static frameworks as well). When I include the SDK bundle in a client project (which also includes the 3 pods as static frameworks) it gives me linkage errors (Undefined Symbol) for every reference in the SDK to these dependencies. The rest of the project (which also relies on them) compiles (and I presume, links) fine. Why can't the SDK xcframework link to them? I'm pretty sure no archs are getting excluded. The XCFramework includes both arm64 for device (iOS) and x8664arm64 for simulator Note, when I convert everything to dynamic frameworks, it works fine.
3
0
3.4k
Dec ’21
XCFramework "Cannot load underlying module"
I've built an SDK (which has dependencies) and packaged it up as an XCFramework for clients' use, but when I test it in a project, I'm getting: ...SDK.swiftmodule/arm64-apple-ios.swiftinterface:20:8: Cannot load underlying module for... This occurs in the Compile Swift Sources action and the break is in the import DepedencySDK statement in the swiftinterface file In the SDK project and the demo, the dependencies are loaded into the project via cocoapods. Any ideas? Or suggestions on how to debug this further? Thanks!
Replies
1
Boosts
0
Views
4.2k
Activity
Jan ’22
Static XCFramework won't link to its dependencies in a project
I have an SDK that is a static xcframework built against 3 pods (which are configured as static frameworks as well). When I include the SDK bundle in a client project (which also includes the 3 pods as static frameworks) it gives me linkage errors (Undefined Symbol) for every reference in the SDK to these dependencies. The rest of the project (which also relies on them) compiles (and I presume, links) fine. Why can't the SDK xcframework link to them? I'm pretty sure no archs are getting excluded. The XCFramework includes both arm64 for device (iOS) and x8664arm64 for simulator Note, when I convert everything to dynamic frameworks, it works fine.
Replies
3
Boosts
0
Views
3.4k
Activity
Dec ’21