Fast built-in library & # 8594; The error of the command / usr / bin / codesign with exit code 1

I am trying to integrate quick framework into my project: http://developer.skobbler.com/download/SKMaps_iOS_2.4.0_withDemo_Swift.zip

When I try to integrate, since the embedded binary cannot encode the character and tells me msgstr "the code did not work with exit code 1".

CodeSign /Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework
    cd "/Users/k1x/Workspace iOS/SwitchMaps"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer"

    /usr/bin/codesign --force --sign 56131F60BE8DA3BA4F04CBF6717C75951E93E4D6 --preserve-metadata=identifier,entitlements,resource-rules /Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework

Warning: usage of --preserve-metadata with option "resource-rules" (deprecated in Mac OS X >= 10.10)!
/Users/k1x/Library/Developer/Xcode/DerivedData/TestMaps-dubiwcafqgeplbabdrqpjtokouxq/Build/Products/Debug-iphoneos/TestMaps.app/Frameworks/SKMaps.framework: invalid resource specification rule(s)
Command /usr/bin/codesign failed with exit code 1

And I tried to include the framework in the "Related Frames and Binaries" section. But I have the following conclusion:

dyld: Library not loaded: @rpath/SKMaps.framework/SKMaps
  Referenced from: /private/var/mobile/Containers/Bundle/Application/B3686F36-2120-4007-97AB-B2D3B423C0A0/TestMaps.app/TestMaps
  Reason: image not found

I googled and found other posts for this problem, but they did not answer my question. Just in case, everything works correctly with its version of Objective-C: http://developer.skobbler.com/download/SKMaps_iOS_2.4.0_withDemo.zip

+4
3

cocoapods .

, , .

: cocoa pods , pod 'ScoutMaps-iOS-SDK', , pod install SKMaps/SKMaps.h, SKMaps/SKMaps.h Objective-C, Swift.

+1

SKMaps.framework Frameworks , SKMapsSwiftDemo ( ), ,

SDK.

0

For the problem:

dyld: Library not loaded: @rpath/SKMaps.framework/SKMapsReferenced from:
/private/var/mobile/Containers/Bundle/Application/
B3686F36-2120-4007-97ABB2D3B423C0A0/TestMaps.app/TestMaps
Reason: image not found

I ran into the same problem (Swift project from scratch.)

Adding SKMaps.framework in Built binaries (Project / Target / General / Embedded Binaries) did the trick here:

Embedded binaries

Clean, run, run. 🍻

0
source

All Articles