-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dyld: Library not loaded: @rpath/Charts.framework/Charts XCODE 11.3.1 #4280
Comments
I also have this problem. After updated MacOS to 10.15.3, Xcode to 11.3.1 and iPad 13.3.1 I cannot build and run my Objective-C project to my iPad anymore. My specific error is:
Can anyone please share further details/solution/tips? Thank you! |
This is the first and only error that I couldn’t fix no matter what I tried. I would really appreciate if someone can help. Thanks. |
Same thing is happening to me - worked fine before the iOS 13.3.1 update. Builds and runs fine on simulator. Both my iOS devices that were updated don't work (iPhone 11 and iPad Pro). Charts was installed using pods. Also tried the various things suggested on stack overflow like cleaning build folder, refreshing certificates, etc. |
Just to provide a bit more detail that might help, I have an iPhone X on 13.3 that runs without issue with the same code, so I suspect it's an iOS 13.3.1 incompatibility. My Xcode is version 11.3.1. |
Same here, worked fine on 13.3, but after upgrading to 13.3.1 Charts crash the whole app |
The same for me, after update to 13.3.1 Charts crash. In previous versions, it works fine. |
Doing some further research, this seems to be an issue only for free developer accounts (other dependencies like Alamofire have the same issue). Unfortunately the fixes that were brought up in the Alamofire page haven’t worked for me here. |
I have a regular Apple Developer Program subscription (PAID), so it's not a issue for free developers. I'll try a way to downgrade by iPad |
As a temporary fix you can remove Edit: I also ran |
removing use_frameworks! and adding use_modular_headers! instead worked for me. |
I replaced use_frameworks! with use_modular_headers! just right now. And now the problem is Xcode can't compile because it doesn't reconize the Charts library anymore. I also did run a "pod update" after the change but nothing. |
Downgrade iPad to iPadOS 13.2 is not possible anymore. Apple official repository returns an "Access Denied" error! |
This i what happened with me as well ! |
It's not really "Charts" issue, because many other pods experience this right now (alamofire for example), seems more likely a cocoa pods problem |
When I updated by iPad (last Friday) I wasn't use CocoaPod. I just linked the Charts library and the error popped up. After read about CocoaPod I wanted to create a brand new project with Charts (via CocoaPods) a same error. So IT'S NOT A POD ISSUE @Orackle21 it's a Charts issue... |
Alright, I see. Seems more like embedded frameworks issue, because other frameworks are affected too, not only charts |
Anyone know of an update on this? Is there a better thread to follow that's more related to actual issue? |
I ran into this issue and resolved it by removing the "use_frameworks!" line in the PodFile. (This results in charts statically linking). Thank you "Orackle21" ! |
looks like it's about pod issue as you guys mentioned. The ChartsDemo works fine, and something wrong with the code signature, which we didn't touch. |
NOT WORKING... |
The ChartsDemo actually doesn’t work either, but you are correct it is (largely) an Apple/iOS bug. A few dependencies (but not all of them) are impacted by this bug, and unfortunately as of now it still exists in iOS 13.4 beta as well. This thread below goes into things in a bit more detail. Basically the solutions so far are as follows:
|
ChartsDemo with Xcode11.3.1 + iOS13.3 + real iPhone is just fine on my side. I can run it without any problem. I'm not sure what you mean by 'does not work either'. |
@liuxuan30 when I try to compile the charts demo, I got the same dyld error as I do when compiling on my program. |
In cases like these where Xcode just behaves weirdly, I suggest first cleaning up everything (DerivedData, other junk in ~/Library folders). Then reinstall. This will take some time to redownload Xcode, but not as much as trying to figure out why it misbehaves. |
It's not Xcode that behaves weirdly, it's actually physical devices that crash |
Either way - it starts with Xcode. For some it's the simulators that crash, for some it's physical devices. |
Thank you Daniel. Apart from deleting and reinstalling XCODE, I have tried everything possible out there. I even manually cleaned a lot of files and folders; still no luck. At a convenient time, I WILL delete and reinstall XCODE as well. |
Do not forget these: (There are probably others I'm forgetting)
|
Just tried these as well. Still no luck =(. In fact if you manually erase the developer folder, the simulator does not build. |
Try using the latest 13.4 beta. It looks like Apple has now fixed the bug on their end just recently. |
Is this issue solved with the latest XCode ? (11.4.1) |
I recently had this error when my phone was on iOS (13.3.1), but when I updated my phone to iOS 13.5.1, the issue was solved. |
YES, FINALLY IT WORKS. As nathanchou4 says, with the new ios update the issue is solved ! |
I think I had a similar issue, and to resolve it I just removed all dynamic versions of all packages from my project. |
I am facing the same issue, my simulator (14 pro max, 17.0) works completely fine, but when I run on my physical device (13, 17.0.3) it gives the same error. The main point is that it worked fine just a couple of hours ago. |
What did you do?
ℹ I built my app on my physical iphone and put my computer to sleep. When I got back, without making ABSOLUTELY NO changes I built the app once more (clicked the "play" button on XCODE) and ever since I've been getting the error:
dyld: Library not loaded: @rpath/Charts.framework/Charts
Referenced from: /private/var/containers/Bundle/Application/4B33D98E-3CC3-4632-8164-49F7465AFD92/Test.app/Test
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/4B33D98E-3CC3-4632-8164-49F7465AFD92/Test.app/Frameworks/Charts.framework/Charts: code signature invalid for '/private/var/containers/Bundle/Application/4B33D98E-3CC3-4632-8164-49F7465AFD92/Test.app/Frameworks/Charts.framework/Charts'
Charts Environment
Xcode version: 11.3.1
Swift version: 5something
The text was updated successfully, but these errors were encountered: