• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by wightwhale · Aug 10, 2012 at 12:20 AM · iosxcodelinkerarmv7

Apple Mach-O Linker Error

I've just updated to the newest version of unity and xcode and now I'm unable to build to any device. xcode spits out this message to me. I've tried changing build settings, reinstalling unity and xcode, restarting ect. Nothing is working for me. Please help!

Ld /Users/AbsurdHome/Library/Developer/Xcode/DerivedData/Unity-iPhone-diwoznzqoasjwqabxsnjrzrfofkm/Build/Products/ThisIsNotABallGame.app/ThisIsNotABallGame normal armv7 cd /Users/AbsurdHome/ThisIsNotABallGame/newinstall setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/AbsurdHome/Library/Developer/Xcode/DerivedData/Unity-iPhone-diwoznzqoasjwqabxsnjrzrfofkm/Build/Products -L/Users/AbsurdHome/ThisIsNotABallGame/Assets/Editor/StoreKit -L/Users/AbsurdHome/ThisIsNotABallGame/Assets/Editor/Mobclix -L/Users/AbsurdHome/ThisIsNotABallGame/Assets/Editor/GameCenter -L/Users/AbsurdHome/ThisIsNotABallGame/newinstall -L/Users/AbsurdHome/ThisIsNotABallGame/newinstall/Libraries -F/Users/AbsurdHome/Library/Developer/Xcode/DerivedData/Unity-iPhone-diwoznzqoasjwqabxsnjrzrfofkm/Build/Products -filelist /Users/AbsurdHome/Library/Developer/Xcode/DerivedData/Unity-iPhone-diwoznzqoasjwqabxsnjrzrfofkm/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ThisIsNotABallGame.LinkFileList -dead_strip -all_load -weak_framework CoreMotion -weak-lSystem -fobjc-link-runtime -miphoneos-version-min=5.1 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -lTestFlight -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -weak_framework GameKit -weak_framework MessageUI -lz.1.1.3 -lP31MonoBridge -framework AddressBook -framework AddressBookUI -weak_framework EventKit -lMobclix_nonthumb -framework StoreKit -lStoreKit -o /Users/AbsurdHome/Library/Developer/Xcode/DerivedData/Unity-iPhone-diwoznzqoasjwqabxsnjrzrfofkm/Build/Products/ThisIsNotABallGame.app/ThisIsNotABallGame

Undefined symbols for architecture armv7: "NotifyAutoOrientationChange()", referenced from: ScreenManager::SetIsOrientationEnabled(EnabledOrientation, bool) in libiPhone-lib.a(ScreenManager.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by captureint · Sep 21, 2012 at 07:16 PM

I also have this error. Unity 3.5.5f3 and Xcode 4.4.1, iOS target 5.1

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by captureint · Sep 21, 2012 at 10:12 PM

I figured it out. I modified AppController.mm to handle a custom url scheme and overwrote the one in to the Xcode project using PostprocessBuildPlayer. To fix it I had to re-merge my custom code with the new AppController.mm.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by greenland · Nov 13, 2013 at 01:21 AM

I also got these errors, with a completely different fix. I had to go to the 'capabilities' tab and activate the (NYI) features that i'd requested for the application id. weird. Switched on iCloud, Game Center and In-App purchases. Apparently, anything not prohibited is mandatory.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image petey · Mar 28, 2014 at 11:05 PM 0
Share

Hey thanks for that tip!

avatar image
0

Answer by MrRetroCentral · Dec 06, 2015 at 03:38 AM

I had the same problem. I made a video to show you how to fix it. https://www.youtube.com/watch?v=j3UzJSRex_E

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Question on "Missing Retina 4-inch launch image" with Unity Free 0 Answers

GUI Button linking to a different UIView/UIViewController 0 Answers

Application quit shows error in iOS 1 Answer

iOS Gamecenter Apple Mach-O Linker errors in xcode build 1 Answer

Undefined symbols for architecture armv7 - Unity XCode Project Error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges