- Home /
Apple Mach-O Linker (ld) Error: Linker Command Failed
Hey, I'd really like to see an answer on this. I have the same problem and I can't get around it.
My Info
I've updated Unity to version 2019.3.7f1 and Xcode version 11.3.1.
Referenced Posts and Attempts
Attempt #1
his post mentions two things I have no idea where they are, maybe that will help or maybe its mentioning features only available in the referenced outdated version of Unity? 1. choose in player setting under other settings : universal platform and IL2CPP 2. update all plugins as these need to support arm64
https://answers.unity.com/questions/912000/apple-mach-o-linker-error-when-building.html
Attempt #2
Next, I tried what this post mentioned which was enabling module and disable bitcode: https://answers.unity.com/questions/1381020/apple-mach-o-linker-id-error-1.html
Attempt #3
set the Scripting Backend to IL2CPP (Defaults to Mono (2.x)) and Architecture to Universal as mentioned here: https://answers.unity.com/questions/788331/xcode-511-missing-architectures-arm64.html?_ga=2.208111634.1688457181.1585673871-1609956356.1584999078
Attempt #4
reset architecture settings to standard and build active architecture as this mentions: https://stackoverflow.com/questions/22331908/xcode-5-1-missing-required-architecture-arm64
Attempt #5
deleted the library search paths as mentioned here: https://stackoverflow.com/questions/16644982/apple-mach-o-linker-warning-directory-not-found
Attempt #6
'm not really willing to downgrade Xcode as this suggests: https://answers.unity.com/questions/1412715/apple-mach-o-linker-error-when-building-1.html
Attempt #7
tried changing the ... thingy up in the top left...it's like a button that states [Unity iPhone > iPhone] as opposed to a simulator or "General Device". (Looks like @MrRetroCentral put the solution that worked for him on many posts). https://answers.unity.com/questions/706942/apple-mach-o-linker-error-3.html https://answers.unity.com/questions/349669/apple-mach-o-linker-id-error.html https://answers.unity.com/questions/323051/apple-mach-o-linker-error-during-build.html https://answers.unity.com/questions/837069/unity-46beta-mach-o-linker-errors.html
Attempt #8
omeone here mentioned using some Native Sharing Plugins from a Github Repo, but I don't know how to use them: https://github.com/NicholasSheehan/Unity-Native-Sharing
Attempt #9
ere @rathodjignesh1805 merely tells you to expand two things, which...not sure how that's helpful. I think we're missing a step on what to do with the expanded sections. https://answers.unity.com/questions/1336791/apple-mach-o-linker-ld-error-group.html
Attempt #10
ince my issue is related to Duplicate Architecture Symbols, I switched No Common Blocks to 'No' and I still get the Apple Mach-O Linker Error. https://stackoverflow.com/questions/16427024/duplicate-symbols-for-architecture-armv7
Attempt #11
ran the pack uninstaller as someone recommended in this post yet found I don't have anything called 'Ads' at all: https://stackoverflow.com/questions/35723861/unity-ads-error-from-unity-to-xcode-build
Other People's Attempts to Ask Answer.Unity.com
ere are posts from poor souls who never got an answer: https://answers.unity.com/questions/1574708/how-to-solve-xcode-apple-mach-o-linker-id-error.html
https://answers.unity.com/questions/1075727/apple-mach-o-linker-id-errors.html
https://answers.unity.com/questions/999733/64bit-architecture-lead-to-problems.html
https://answers.unity.com/questions/534784/apple-mach-o-linker-error-in-xcode-due-to-game-cen.html
https://answers.unity.com/questions/1345370/xcode-apple-mach-o-linker-error-library-not-found.html
https://answers.unity.com/questions/180064/apple-mach-o-linker-error.html
Summation
am stuck I have no idea what to do. Please help me. I'm so desperate! Where do I throw my money!? In all honesty, thank you for your time!
I get the following error message:
Answer by Will_at_BridgeWorxGames · Apr 03, 2020 at 10:55 PM
I got in touch with a local gamer's group and they helped out. Looks like the answer was in the warning. I removed all of Unity's ads, built the game, and archiving in XCode worked. No Link-O-Whatever error. So, then while re-implementing all the ads, I found that there were two scripts requesting the IUnityAdsListener in the class initialization lists, yet I was only using one of those files. Got rid of the second, and bam! We're good to go. Hopefully that helps someone else in the future!
I'm back...it didn't work. Once I enable the Ads in the Services tab, I get the $$anonymous$$ach-O-Linker again.
Got it. Unity Editor > Cloud > Services > Enable Ads > Advanced > DISABLE plugins (if you have the Unity Ads 2.0 SDK package installed from the Asset Store).
Your answer
Follow this Question
Related Questions
iOS Children's Game: Closing and relaunching again allows user to access the App Store 0 Answers
Several Linker errors building in XCode 4.5.1 (Unity 3.5.6f4) 1 Answer
Can't get children/Color not part of material 1 Answer
How to change color to every specific material in a child of a group..? 1 Answer
How to make multiple gameobjects child of one and the same transform (SCRIPT) 2 Answers