-1

I'm trying to build Alamofire App on my Device (iPhone 7). But faced some troubles:

Please help fix that issue:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire

Referenced from: /private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/PFXAuth

Reason: no suitable image found. Did find:

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: code signature invalid for /private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: stat() failed with errno=25

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: code signature invalid for '/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire'

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: stat() failed with errno=1

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: code signature invalid for '/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire'

/private/var/containers/Bundle/Application/B3B129CA-9E0A-41C4-BB8B-3328E36F7FE0/PFXAuth.app/Frameworks/Alamofire.framework/Alamofire: stat() failed with errno=1 (lldb)

Thanks in advance!

Community
  • 1
  • 1
Oleg Savelyev
  • 275
  • 4
  • 16

4 Answers4

1

follow these steps Adding Frameworks to Your Xcode Project http://docs.onemobilesdk.aol.com/ios-ad-sdk/adding-frameworks-xcode.html

NinjaDeveloper
  • 1,620
  • 3
  • 19
  • 51
0

add Alamofire.framework to Linked Frameworks and Libraries

Divya Vohra
  • 117
  • 4
0

I faced same issue on Xcode 11.3 and iOS 13.2 nothing worked for me. But It runs on simulators and on devices need purchased Apple developer account.

AyAz
  • 2,027
  • 2
  • 21
  • 28
0

Trying to use Alamofire and Cocoapods inside my PFXAuth Project

fulfilled recommendations http://docs.onemobilesdk.aol.com/ios-ad-sdk/adding-frameworks-xcode.html

but the imported framework Alamofire looks transparent (something wrong)

enter image description here

But the same error fixed %(

Commenting in Podfile row use_frameworks! helps !

Oleg Savelyev
  • 275
  • 4
  • 16