dyld: Library not loaded, app requires AFNetworking 2.0.0 but provides version 1.0.0
I had this problem and tried a solution I found here https://github.com/CocoaPods/CocoaPods/issues/3903 - do a "Clean Build Folder" (Product menu -> hold down alt
key and Clean
should now say Clean Build Folder
) and I also did a pod install
but I don't think that matters.
I guess deleting the derived data folder also fixes the issue.
Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0
Is it possible that you are using a CocoaPods version older than 0.38.2?
If so, update to 0.38.2 using sudo gem install cocoapods
and run pod install
on your project.
There was a recent bugfix that deals with illegal version numbers in the build settings of the linker.
As a workaround you could manually set the version of the "Runes" pod to 2 in the pod's target under Build Settings -> Linker -> Compatibility Version
iOS app with framework crashed on device, dyld: Library not loaded, Xcode 6 Beta
In the target's General tab, there is an Embedded Binaries field. When you add the framework there the crash is resolved.
Reference is here on Apple Developer Forums.
Cocoapods dyld: Library not loaded @rpath Image not found
For those who find this issue in the future, it has been solved by cleaning the build folder by doing Option+Shift+Command+K. This solves the issue.
Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0
Is it possible that you are using a CocoaPods version older than 0.38.2?
If so, update to 0.38.2 using sudo gem install cocoapods
and run pod install
on your project.
There was a recent bugfix that deals with illegal version numbers in the build settings of the linker.
As a workaround you could manually set the version of the "Runes" pod to 2 in the pod's target under Build Settings -> Linker -> Compatibility Version
Issue with building project after addition of AFNetworking in Xcode 8
On screenshot I see that you added Apple Security.framework, and problem is with AFNetworking framework. Are you sure that you added AFNetworking to your project. If it was also added - then next question comes:
Was CocoaPods used for this, or there was another source. CocoaPods should install newest version of framework but if framework is for example copied from older project - then it can cause many issues. For example framework may not support arm64 architecture.
So first attempt to solve this problem will be using fresh version of framework (using CocoaPods recommended), eventually check architectures supported by framework (see here).
Related Topics
Get the String Up to a Specific Character
Swiftui: How to Only Run Code When the User Stops Typing in a Textfield
Saving Swifty JSON Array to User Defaults
Error: Extraneous Argument Label 'No1:' in Call
How to Replicate Hash_Hmac('Sha256', $Key, $Secret_Key) Function in Swift 4
Loading Views into Nscontainerview with Swift
Differences Generic Protocol Type Parameter VS Direct Protocol Type
Changing Texteditor Background Color in Swiftui for MACos
With Swiftui, How to Constrain a View's Size to Another Non-Sibling View
Moving Skspritenode to Location of the Touch
Parse.Com Pfgeopoint.Geopointforcurrentlocationinbackground Not Doing Anything
How to Delete Object in Array of Dictionaries Using Key Value
Why Use Float(Arc4Random())/0Xffffffff Instead of Drand()
How to Incorporate Swift Package Manager to an Existing Xcode Project