Linc
Linc

Reputation: 1299

Should I embed XCFramework (third-party) in a Xcode project?

I found that the project would fail to build (error:image not loaded) if the normal third-party framework does't set as "embedded" in the project settings. However, this time, I rebuilt this third-party framework as XCFramework, and everything goes fine with "Do Not Embed" settings for XCFramework.

Should I embed XCFramework or not?

Upvotes: 8

Views: 3539

Answers (1)

Alpana
Alpana

Reputation: 983

Select "Embed & Sign" to avoid image not found crash when running apps on physical device which contains any third-party XCFrameworks.

This option can be selected from linked xcframework under Targets -> General -> Frameworks, Libraries and Embedded Content.

enter image description here

But the application with xcframework will work fine in simulator with any of options available from Do Not Embed, Embed & Sign or Embed Without Signing.

Upvotes: 11

Related Questions