Support Forum
[iOS] How do I get my app to build on my M1 Mac (iOS Simulator) when Taboola is installed via Carthage?
I think the question says it all. I recently updated my machine, went to install the TaboolaSDK via Carthage, and got the error during build (for simulator):
This is a known issue, well described here: https://medium.com/@quentinfasquel/carthage-issues-xcode-12-xcframeworks-apple-silicon-etc-1c60d8635dbc
stephen-work@Stephens-M1-Pro iOS-App % ./carthage.sh bootstrap --platform iOS
*** No Cartfile.resolved found, updating dependencies
*** Downloading binary-only framework TaboolaSDK at "https://cdn.taboola.com/taboola-mobile-sdk/ios/carthage/TaboolaSDK.json"
*** xcodebuild output can be found in /var/folders/22/62ggb_8x21l87nh68dc2hm6w0000gp/T/carthage-xcodebuild.9PI6S7.log
*** Downloading binary-only framework TaboolaSDK at "https://cdn.taboola.com/taboola-mobile-sdk/ios/carthage/TaboolaSDK.json"
As far as I understand, 2 solution paths would be to support building .xcframeworks (and provide some support documentation about this issue), and/or additionally installing via Swift Package Manager (SPM).
Anyway, is there a way forward here?
I currently use the 'carthage.sh' script, given here: https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md
Where it explicitly says "this won't work on Apple Silicon" i.e. the simulator.
So I'm basically stuck.