"dyld: Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /Users/719428/Library/Developer/CoreSimulator/Devices/CE52EC21-4EC9-4403-820C-7782304F0270/data/Containers/Bundle/Application/5E363578-B139-4090-A075-271E38A2F341/SampleEpubReader.app/Frameworks/SampleEpubFramework.framework/SampleEpubFramework
Reason: image not found"
There are few more queries as part of this framework development
I also faced this issue. While building a cocoa touch framework that includes some Cocoapod dependencies. The CocoaPod dependencies are not embedded to the framework binary created by Xcode. Although this works if I make a iOS application all the Cocoapod dependencies are embedded in the .app file as separate .frameworks.
Is there any issue with using Cocoapods and CocoaTouch frameworks together? Is there any workaround for this issue ?
Please suggest
Hello, our issue might solve your case:
https://github.com/CocoaPods/CocoaPods/issues/8594#issue-418674487
we ourselves are struggling with optional frameworks, which do not work with cocoa pods...
We are facing the same issue with Cocoa Touch Frameworks.
```dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /Users/.../Build/Products/Debug-iphonesimulator/Data.framework/Data
Reason: image not found
Podfile that used to work on CocoaPod version 1.5.3. But is broken on 1.6.1:
```#App target
target 'App' do
pod 'EasyPeasy'
end
# Cocoa Touch Framework
target 'Data' do
pod 'Alamofire'
end
And this seems to "fix" the error:
```#App target
target 'App' do
pod 'EasyPeasy'
pod 'Alamofire'
end
target 'Data' do
pod 'Alamofire'
end
```
Hope this is fixed in the next update
There appears to be two issues being discussed here. I am experiencing the same issue as @ganeshbasker and @axnmax when updating to any version of CocoaPods later than 1.6.0.beta.2
.
The issue seems to affect only some pods. So far I am aware of KissXML
and GoogleSignInRepacked
. These pods use vendored_frameworks
to link a dynamic framework but I think there may be something unusual about how they are built. In the cause of GoogleSignInRepacked it is actually a repackaged version of the static framework distributed by Google.
I have put together a sample project to demonstrate the issue here: https://github.com/jtreanor/CocoaPodsLinkingDemo
The change seems to have been introduced by https://github.com/CocoaPods/CocoaPods/pull/8314.
I'm experiencing the same issue. @TomVanDerSpek 's workaround does seem to work for me.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
with the latest pods which version is CocoaPods 1.9.0.beta.2,this issue happened,how can i do?
The workaround is not a perfect solution.
If you have a SwiftUI file in the framework, and try to use canvas, it'll throw the exact error and basically you can't use the canvas.
Hello, i'm having the same issue. I've created a Framework library with a CocoaPods dependency.
use_frameworks!
workspace 'MyWorkspace.xcworkspace'
target 'MyLibrary' do
project './MyLibrary/MyLibrary.xcodeproj'
pod 'WebRTC'
end
When i run the main app which links to my library, i get the error "dyld: Library not loaded. Reason: image not found"
Only if i add the same pod to the main app target, i make the error go away, which seems redundant. What am i doing wrong?
I am also facing same issue . How to fix that issue ?
I encountered this issue when trying to build to my actual iOS device (but it worked fine in the simulator). I spent at least 10 hours trying to fix this bug. Tried everything in all the forums, nothing worked. But this is what finally worked for me!
I couldn't have imagined this, but its true that iOS 13.3.1 breaks the third parties signature unless you have a paid developer account!
Upgrading from iOS 13.3.1 to iOS 13.4.1. worked for me too, thank you.
Most helpful comment
We are facing the same issue with Cocoa Touch Frameworks.
```dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /Users/.../Build/Products/Debug-iphonesimulator/Data.framework/Data
Reason: image not found
And this seems to "fix" the error:
```#App target
target 'App' do
pod 'EasyPeasy'
pod 'Alamofire'
end
Cocoa Touch Framework
target 'Data' do
pod 'Alamofire'
end
```
Hope this is fixed in the next update