Alamofire,dyld:未加载库:,原因:未找到合适的图像。确实找到了:,不适用于

时间:2020-06-25 03:34:48

标签: xcode cocoapods alamofire

当我尝试运行安装并使用AlamoFire的应用程序时,构建成功后会发生以下崩溃。

dyld`__abort_with_payload:
    0x1006e7eb4 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209 
    0x1006e7eb9 <+5>:  movq   %rcx, %r10
    0x1006e7ebc <+8>:  syscall 
->  0x1006e7ebe <+10>: jae    0x1006e7ec8               ; <+20>
    0x1006e7ec0 <+12>: movq   %rax, %rdi
    0x1006e7ec3 <+15>: jmp    0x1006e63e8               ; cerror_nocancel
    0x1006e7ec8 <+20>: retq   
    0x1006e7ec9 <+21>: nop    
    0x1006e7eca <+22>: nop    
    0x1006e7ecb <+23>: nop    
dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire
  Referenced from: /Users/scottlydon/Library/Developer/Xcode/DerivedData/TimeFountain-ezxosxusmvqbwafcjpntqcqqdpkl/Build/Products/Debug/TimeFountain.app/Contents/MacOS/TimeFountain
  Reason: no suitable image found.  Did find:
    /Users/scottlydon/Library/Developer/Xcode/DerivedData/TimeFountain-ezxosxusmvqbwafcjpntqcqqdpkl/Build/Products/Debug/TimeFountain.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire: code signature in (/Users/scottlydon/Library/Developer/Xcode/DerivedData/TimeFountain-ezxosxusmvqbwafcjpntqcqqdpkl/Build/Products/Debug/TimeFountain.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
    /Users/scottlydon/Library/Developer/Xcode/DerivedData/TimeFountain-ezxosxusmvqbwafcjpntqcqqdpkl/Build/Products/Debug/TimeFountain.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire: code signature in (/Users/scottlydon/Library/Developer/Xcode/DerivedData/TimeFountain-ezxosxusmvqbwafcjpntqcqqdpkl/Build/Products/Debug/TimeFountain.app/Contents/MacOS/../Frameworks/Alamofire.framework/Versions/A/Alamofire) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)

我不知道为什么没有匿名“图像”会使我的应用程序崩溃。我的应用设置了我的代码签名

enter image description here

1 个答案:

答案 0 :(得分:2)

enter image description here

将签署证书从“签署”更改为“开发”就可以在本地运行。