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

Remove "linking against dylib not safe for use in application extensions" warning #19

Merged
merged 1 commit into from
Mar 28, 2016
Merged

Remove "linking against dylib not safe for use in application extensions" warning #19

merged 1 commit into from
Mar 28, 2016

Conversation

kumapo
Copy link
Contributor

@kumapo kumapo commented Mar 28, 2016

Remove "linking against dylib not safe for use in application extensions" warning when the application project that includes app extension is integrated with Hue.framework using Carthage

The warning message in Report navigator is:

Ld /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Products/Debug-iphonesimulator/FooExtension.appex/FooExtension normal x86_64
    cd /path/to/mine/works/Foo-ios
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Products/Debug-iphonesimulator -F/path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Products/Debug-iphonesimulator -F/path/to/mine/works/Foo-ios/Carthage/Build/iOS -filelist /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Intermediates/Foo.build/Debug-iphonesimulator/FooExtension.build/Objects-normal/x86_64/FooExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=9.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -framework SDWebImage -e _NSExtensionMain -fapplication-extension -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Intermediates/Foo.build/Debug-iphonesimulator/FooExtension.build/Objects-normal/x86_64/FooExtension.swiftmodule -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Intermediates/Foo.build/Debug-iphonesimulator/FooExtension.build/FooExtension.appex.xcent -framework Hue -framework CollectionViewWaterfallLayout -framework HTTPStatusCodes -framework RxCocoa -framework RxSwift -framework Security -framework KeychainAccess -framework SwiftyJSON -framework Alamofire -framework Pods_FooExtension -Xlinker -dependency_info -Xlinker /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Intermediates/Foo.build/Debug-iphonesimulator/FooExtension.build/Objects-normal/x86_64/FooExtension_dependency_info.dat -o /path/to/mine/Library/Developer/Xcode/DerivedData/Foo-brbdrhsipbngmbecsynuwcvgwsgt/Build/Products/Debug-iphonesimulator/FooExtension.appex/FooExtension

ld: warning: linking against a dylib which is not safe for use in application extensions: /path/to/mine/works/Foo-ios/Carthage/Build/iOS/Hue.framework/Hue

@kumapo kumapo changed the title Enable iOS and OSX targets Allow app extension API only Remove "linking against dylib not safe for use in application extensions" warning Mar 28, 2016
@zenangst zenangst merged commit 89ae5e1 into zenangst:master Mar 28, 2016
@zenangst
Copy link
Owner

@kumapo cheers mate!

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 this pull request may close these issues.

2 participants