Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: Release 9.3.0
-
Fix Version/s: Release 9.3.1
-
Component/s: None
-
Story Points:3
-
Sprint:2021 Sprint 1
Description
I'm filing this ticket since multiple people on Slack are reporting build errors with the latest Xcode 12.3:
https://ti-slack.slack.com/archives/C03CVQX2A/p1608033847217400
https://ti-slack.slack.com/archives/C03CVQX2A/p1608193731266100
The error is:
error: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator
|
or
Modules
|
Ti.Animation
|
[TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'Lottie.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app')
|
|
AV.ImageView
|
[TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app'
|
According to Stackoverflow https://stackoverflow.com/a/65306886/5193915 you have to set: Validate Workspace to Yes
Another solutions would be removing archiitectures from the modules
simulator
lipo -info Lottie.framework/Lottie
|
lipo -remove armv7 Lottie.framework/Lottie -output Lottie.framework/Lottie
|
lipo -remove arm64 Lottie.framework/Lottie -output Lottie.framework/Lottie
|
device:
lipo -info Lottie.framework/Lottie
|
lipo -remove i386 Lottie.framework/Lottie -output Lottie.framework/Lottie
|
lipo -remove x86_64 Lottie.framework/Lottie -output Lottie.framework/Lottie
|
A downgrade to Xcode 12.2 is the best solution at the moment