Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for iOS Simulator error when not using .xcframework #1059

Closed
wilsolutions opened this issue Jan 18, 2021 · 0 comments · Fixed by #1060
Closed

Building for iOS Simulator error when not using .xcframework #1059

wilsolutions opened this issue Jan 18, 2021 · 0 comments · Fixed by #1060
Milestone

Comments

@wilsolutions
Copy link

wilsolutions commented Jan 18, 2021

Bug Report

Problem

Cannot build App that uses .framework in the Simulator after upgrading to Xcode 12.3.

What is expected to happen?

The build completes without errors.

What does actually happen?

Got the following error:
"Building for iOS Simulator, but the embedded framework 'xyz.framework' was built for iOS + iOS Simulator."

Information

Build an App that contains a xyz.framework lib results in a build error.
Just add any xyz.framework framework to an App, make sure you have Xcode 12.3 and you will get the error.

Note:
I did this workaround and was able to build:
Workaround: Under Build Settings - Navigate to Validate Workspace - Change it to YES.

Command or Code

ionic cordova run ios --color=true --address=0.0.0.0 --livereload=true --consolelogs=true --emulator --target=simulator target.

Environment, Platform, Device

iPhone 12 Simulator with iOS 14.3
Installed platforms:
ios 6.1.1

Version information

Installed platforms:
ios 6.1.1

Checklist

  • [ x] I searched for existing GitHub issues
  • [ x] I updated all Cordova tooling to most recent version
  • [ x] I included all the necessary information above
@dpogue dpogue added this to the 6.next milestone Jan 19, 2021
dpogue added a commit to dpogue/cordova-ios that referenced this issue Jan 19, 2021
In Xcode 12, if an app is linked against .framework files with multiple
architectures, it will generate and error about embedded framework
mismatches. Declaring this property (even with its default value of NO)
resolves the issue.
dpogue added a commit that referenced this issue Jan 19, 2021
In Xcode 12, if an app is linked against .framework files with multiple
architectures, it will generate an error about embedded framework
mismatches. Declaring this property (even with its default value of NO)
resolves the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants