Swift使用pod导入AFNetworking后,真机编译通过,但在启动时报错。更换导入其它第三方库后,仍然报错。
报错:
dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from: /private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/afg
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: code signature invalid for '/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking'
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: stat() failed with errno=25
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: code signature invalid for '/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking'
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: stat() failed with errno=1
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: code signature invalid for '/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking'
/private/var/containers/Bundle/Application/73C7463D-C93A-49D9-B878-EBAED248D0EA/afg.app/Frameworks/AFNetworking.framework/AFNetworking: stat() failed with errno=1
解决:
这个问题应该是证书的问题导致的,我这边是更换一个测试的Bundle Identifier就好了。
|
请发表评论