Dollar: linking against dylib not safe for use in application extensions

Created on 19 Mar 2015  路  3Comments  路  Source: ankurp/Dollar

I'm trying to use Dollar in my upcoming Apple WatchKit project and I'm getting this kind of warning on WatchKit Extension target. I guess this applies to other extensions (such as Today) as well.
linking against dylib not safe for use in application extensions
Digging in a little bit more I found a quote from Apple

A containing app that links to an embedded framework must include the arm64 (iOS) or x86_64 (OS X) architecture build setting or it will be rejected by the App Store.

https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html

Is there a way around this? To make it save a "save embedded framework" to use in app extensions ? Or is it already save and I have nothing to worry about and just ignore it?

Most helpful comment

FYI you can fix this by changing the "Require Only App-Extension-Safe API" build setting to Yes on the framework target.

All 3 comments

I would need to look into this.

FYI you can fix this by changing the "Require Only App-Extension-Safe API" build setting to Yes on the framework target.

@patr1ck Thanks let me try adding that.

Was this page helpful?
0 / 5 - 0 ratings