Sunday, May 31, 2026
HomeiOS Developmentswift - Unable to construct HERE SDK Premium for ios-arm64-simulator

swift – Unable to construct HERE SDK Premium for ios-arm64-simulator

[ad_1]

Having hassle constructing HERE SDK for iOS (Premium 3.19) for an ios-arm64-simulator. The error produced by Xcode 13 on an M1 professional processor is:

ld: constructing for iOS Simulator, however linking in dylib constructed for iOS, file 'Pods/HEREMaps/framework/NMAKit.xcframework/ios-arm64/NMAKit.framework/NMAKit'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

After some analysis and testing it appears like HERE SDK’s XCFramework folder in addition to the Cocoapod configuration solely embrace ios-arm64 and ios-x86_64-simulator. It appears just like the podspec is trying to repair this by overriding the goal app’s iOS simulator excluded architectures (including excluded structure “arm64”). This probably works high-quality in circumstances the place solely Cocoapod sourced libraries that embrace x86_64 are used within the goal app. Nonetheless, it is an issue when utilizing libraries from different sources the place there isn’t a roll again choice to x86_64 simulators (e.g. Swift Package deal Supervisor).

Is there a method to make use of lipo to generate ios-arm64-simulator from the 2 present framework builds? Or is that this one thing the place ios-arm64-simulator must be constructed as one other configuration from the HERE SDK supply?

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments