Skip to content
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

[Bug] Dyld Message: Library not loaded: @rpath/libswiftCore.dylib (iOS 9.3.2) #506

Closed
5 tasks done
CodeMasterYi opened this issue Dec 24, 2020 · 15 comments
Closed
5 tasks done
Labels

Comments

@CodeMasterYi
Copy link

CodeMasterYi commented Dec 24, 2020

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Unity Editor Version: 2018.4.3f1
  • Unity SDK Version: 8.1.1
  • Installation Platform & Verison: iOS version 9.3.2

Goals

What do you want to achieve?

What do you expect to happen?

What actually happened? Can you provide a stack trace?

What are the steps necessary to reproduce this issue?

Please provide a code sample, as well as any additional details, to help us track down the issue. If you can provide a link to a test project that allows us to reproduce the issue, this helps us immensely in both the speed and quality of the fix.

Note: Remember to format your code for readability:

CrashLog

Dyld Error Message:
Dyld Message: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /private/var/containers/Bundle/Application/4BD71E88-A013-47E7-8A0F-EA4327328BE9/free.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit
  Reason: image not found
  Dyld Version: 390.7
@CodeMasterYi
Copy link
Author

CFD54922-6EC6-4362-9B6D-04EEF71BE8BE
I think this option should be set to YES, right?
Do your editor codes do this after xcode project generated?

@CodeMasterYi
Copy link
Author

for target Pods-Unity-iPhone
21EA24C6-577F-4B1F-A835-A95835116C7A

@CodeMasterYi
Copy link
Author

Unattended?

@KOLLSOFT
Copy link

I meet the same promble, anyone solved this?

@CodeMasterYi
Copy link
Author

Is Facebook‘s QA department shut down?

@CodeMasterYi
Copy link
Author

Anybody?

@deirvlon
Copy link

deirvlon commented Jan 5, 2021

Hi guys you can add
"Accelerate.framework"
Build Phases > Link Binary With Libraries > +

then Build and try.

Actually, by doing this (8.1.0 version of Facebook SDK) I can successfully build (8.1.1 give a lot of errors, even I can not build, it fails), but then it rejected by Apple because it crashed on the launch

@deirvlon
Copy link

deirvlon commented Jan 5, 2021

I found a working form please check this link:
#193 (comment)

@KOLLSOFT
Copy link

KOLLSOFT commented Jan 6, 2021

I try use pod upgrade FBCoreKit to ver8.0 solve this promble.

@CodeMasterYi
Copy link
Author

I try use pod upgrade FBCoreKit to ver8.0 solve this promble.

You mean v8.0 is OK for iOS 9.x?

@9aither
Copy link

9aither commented Jan 10, 2021

Update Xcode to 12

@CodeMasterYi
Copy link
Author

Update Xcode to 12

Really?

@KOLLSOFT
Copy link

I try use pod upgrade FBCoreKit to ver8.0 solve this promble.

You mean v8.0 is OK for iOS 9.x?

yes

@Dshifu
Copy link

Dshifu commented Jan 14, 2021

@CodeMasterYi
For me set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to true fix the problem.
But you need to do it in your build script at order more than 100, because facebook sdk set this property to false at 100 order.

[PostProcessBuild(101)]
        public static void OnPostprocessBuildEmbedSwiftLibraries(BuildTarget target, string pathToBuiltProject)
        {
#if UNITY_IOS
            var proj_path = PBXProject.GetPBXProjectPath(pathToBuiltProject);
            var proj = new PBXProject();
            proj.ReadFromFile(proj_path);
            var mainTarget = proj.GetUnityMainTargetGuid();
            proj.SetBuildProperty(mainTarget, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "YES");
            File.WriteAllText(proj_path, proj.WriteToString());
#endif
        }

@colinmacleod
Copy link

I have this issue too - with Firebase SDK 9.0.0
Downgrading to 8.0.0 removes the issue.

On running the app on device from XCode, this is the output:

dyld: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /private/var/containers/Bundle/Application/C2979E79-0D45-456B-8CE0-9C567CEEE765/d2w.app/d2w
  Reason: image not found
dyld: launch, loading dependent libraries
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb) 

I did try many of the recommendations on this page (and other pages) but nothing I have tried has been able to resolve it - apart from downgrading Facebook SDK, that is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants