ankurp / Dollar

A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript
https://www.dollarswift.org
MIT License
4.26k stars 367 forks source link

linking against dylib not safe for use in application extensions #144

Closed staticdreams closed 9 years ago

staticdreams commented 9 years ago

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?

ankurp commented 9 years ago

I would need to look into this.

patr1ck commented 9 years ago

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

ankurp commented 9 years ago

@patr1ck Thanks let me try adding that.