简体   繁体   中英

pod inside framework project

I am trying to create some cocoatouch framework project.

since i need some framework like Canvas, afnetwork, and others i install it via cocoapod.

it working fine on the simulator, but when i try to run it on my device it gets this error.

dyld: Library not loaded: @rpath/Canvas.framework/Canvas
  Referenced from: /private/var/mobile/Containers/Bundle/Application/CB1D11AD-0406-43D9-849F-D5C6DFFD3F0C/frameworkTester.app/Frameworks/awsome.framework/awsome
  Reason: image not found

i've try to copy manually, and get this error

dyld: Library not loaded: @rpath/Canvas.framework/Canvas
  Referenced from: /private/var/mobile/Containers/Bundle/Application/EE6C9F39-32B7-4F37-A551-4CD879835ADE/frameworkTester.app/Frameworks/awsome.framework/awsome
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/EE6C9F39-32B7-4F37-A551-4CD879835ADE/frameworkTester.app/Frameworks/awsome.framework/Frameworks/Canvas.framework/Canvas: mmap() error 1 at address=0x011EF000, size=0x00014000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/EE6C9F39-32B7-4F37-A551-4CD879835ADE/frameworkTester.app/Frameworks/awsome.framework/Frameworks/Canvas.framework/Canvas
    /private/var/mobile/Containers/Bundle/Application/EE6C9F39-32B7-4F37-A551-4CD879835ADE/frameworkTester.app/Frameworks/awsome.framework/Frameworks/Canvas.framework/Canvas: mmap() error 1 at address=0x0122B000, size=0x00014000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/EE6C9F39-32B7-4F37-A551-4CD879835ADE/frameworkTester.app/Frameworks/awsome.framework/Frameworks/Canvas.framework/Canvas

using pod version 0.39.0.rc.1, and swift xcode Version 7.0.1 (7A1001)

Make sure that the pods framework is set to required and not optional. In the target's General tab, there is an Embedded Binaries field, make sure that you add framework there. If those steps were taken please check this link Failure on device

solution 3744

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM