dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib
Try to do clean, build and then run the project. Worked for me.
Try to do clean, build and then run the project. Worked for me.
For iOS<10 – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { //– Set Notification if ([application respondsToSelector:@selector(isRegisteredForRemoteNotifications)]) { // iOS 8 Notifications [application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; [application registerForRemoteNotifications]; } else { // iOS < 8 Notifications [application registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)]; } //— your custom code return YES; } For iOS10 https://stackoverflow.com/a/39383027/3560390
Found by experimentation, and inspecting the command lines generated by Xcode for a reference rpath demo project by Dave Driblin: otool -L shows you the install name of the linked libraries. To get @rpath to work, you need to change the install name of the library: $ gcc -dynamiclib blah.o -install_name @rpath/t/libblah.dylib -o libblah.dylib $ … Read more
I suggest you run: $ brew update && brew upgrade Until couple of minutes ago I had this problem, too. Because I have an up to date PHP version, I solved it with: $ brew reinstall php55 Hope that helps.
I found the solution to the problem here, so all credit goes to the author. The gist is that when you create a virtualenv, many symlinks are created to the Homebrew installed Python. Here is one example: $ ls -la ~/.virtualenvs/my-virtual-env … lrwxr-xr-x 1 ryan staff 78 Jun 25 13:21 .Python -> /usr/local/Cellar/python/2.7.7/Frameworks/Python.framework/Versions/2.7/Python … When … Read more
I have this problem before for accidentally revoked my certificate. Then all my swift projects have this problem. There are two ways to solve this: Click on Product → Clean (or CMD + Shift + K) Or by manually cleaning the Xcode setting files: rm -rf “$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache” rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/com.apple.dt.Xcode
This is an issue with iOS 13.3.1. All dynamic frameworks being compiled to the newest release of iOS 13.3.1 are experiencing this issue when run on a personal provisioning profile/developer account. The solution, copied from jmagman from Github, is below. You can: Use a non-Personal Team provisioning profile (paid developer account). Run on the 13.3.1 … Read more
For me none of the previous solutions worked. We discovered that there is a flag ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES (in earlier versions: “Embedded Content Contains Swift Code”) in the Build Settings that needs to be set to YES. It was NO by default!
[Xcode 11+] The only thing to do is to add the framework to the General->Frameworks, Libraries And Embedded Content section in the General tab of your app target. Make sure you select the ‘Embed & Sign’ option. [Xcode v6 -> Xcode v10] The only thing to do is to add the framework to the Embedded … Read more
Find all the boost libraries (where exefile is the name of your executable): $ otool -L exefile exefile: @executable_path/libboost_something.dylib (compatibility version 0.7.0, current version 0.7.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 65.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) and for each libboost_xxx.dylib, do: $ install_name_tool -change @executable_path/libboost_something.dylib /opt/local/lib/libboost_something.dylib exefile and finally verify using otool … Read more