Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
1
Question by DolphinM · Dec 01, 2015 at 02:38 PM · iosbuild-errorxcode

Unity 5.2 to Xcode7.1.1 build fail

I made a very easy scene to build iPhone App when I export to xcode it shows message

I'm the new developer of xcode , I didn't change any setting .... Just error

Ld /Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/iphone normal x86_64 cd /Users/Dolphin/Desktop/iPhone export IPHONEOS_DEPLOYMENT_TARGET=9.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -L/Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Products/Release-iphonesimulator -L/Users/Dolphin/Desktop/iPhone -L/Users/Dolphin/Desktop/iPhone/Libraries -F/Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Products/Release-iphonesimulator -filelist /Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/iphone.LinkFileList -Xlinker -map -Xlinker /Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/iphone-LinkMap-normal-x86_64.txt -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreMotion -weak-lSystem -Wl,-undefined,dynamic_lookup -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -weak_framework iAd -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -liPhone-lib -Xlinker -dependency_info -Xlinker /Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/iphone_dependency_info.dat -o /Users/Dolphin/Library/Developer/Xcode/DerivedData/Unity-iPhone-alzxncixitqtnlgofsjmetkxlkus/Build/Intermediates/Unity-iPhone.build/Release-iphonesimulator/Unity-iPhone.build/Objects-normal/x86_64/iphone

ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakMemoryOverride.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakNetStatistics.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakSleep.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakNetTypes.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(DS_Table.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(TableSerializer.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakNetworkFactory.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(NatPunchthroughClient.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(LightweightDatabaseClient.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(NatTypeDetectionClient.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(GetTime.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(BitStream.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(Itoa.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(SocketLayer.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(PacketLogger.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakNetSocket.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(LightweightDatabaseCommon.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(PacketFileLogger.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(PluginInterface2.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(StringCompressor.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(NatTypeDetectionCommon.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakString.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(RakPeer.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(SuperFastHash.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(Rand.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(LinuxStrings.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(SimpleMutex.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(SignaledEvent.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(NetworkIDManager.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(ReliabilityLayer.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(DataBlockEncryptor.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: warning: object file (/Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(DS_HuffmanEncodingTree.o)) was built for newer iOS version (9.1) than being linked (9.0) ld: in /Users/Dolphin/Desktop/iPhone/Libraries/libiPhone-lib.a(GeoRingBuffer.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comment
Add comment · Show 4
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 Volts · Dec 02, 2015 at 09:50 AM 0
Share

I am having exactly the same problem. $$anonymous$$y Unity version is 5.2.3, Xcode is 7.1.1

avatar image Prophet6989 · Dec 02, 2015 at 05:18 PM 0
Share

I also have this problem. It's apper yesterday without reason.

avatar image Jessespike · Dec 02, 2015 at 05:29 PM 0
Share

"was built for newer iOS version (9.1) than being linked (9.0) "

This is just a guess, but what happens if you change the deployment target? Say like 6.0 or something.

avatar image Vander-Does · Dec 31, 2015 at 09:46 AM 0
Share

I'm having the same problem. I'm using XCode 7.2 and Unity 5.3.

libiPhone-lib.a(apicontext.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Volts · Dec 04, 2015 at 04:04 PM

Changing the target iOS to other versions made no difference. I am using Unity 5.2.3f1 Personal and Xcode 7.1.1(7B1005) on OSX 10.11.1. I reproduced the problem with a trivial project containing only a UI canvas and text and filed a bug report. (Case 750178)

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 dkmadboe · Dec 15, 2015 at 02:47 PM

I have the same problem with Xcode 7.2 and Unity 5.3. If you set the deployment target of the app to e.g. 9.2 it will remove these linker errors, but add a new one about: ld: in ...Libraries/libiPhone-lib.a(apicontext.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64

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 Volts · Dec 15, 2015 at 02:56 PM 0
Share

I also updated to Unity 5.3 and Xcode 7.2 and continue to have the same problem, a fatal error linking an OSX x86_64 object file when building for iOS simulator.

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.

Follow this Question

Answers Answers and Comments

9 People are following this question.

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

Related Questions

Xcode 11.3 library not found for liphone lib error 0 Answers

Unity iOS Build Bitcode Issue 1 Answer

arm64 function not 4-byte aligned _unwind_tester from libiphone-lib.a(unwind_test_arm64.o).,106 duplicate symbols -arm64 function not 4-byte aligned _unwind_tester from libiphone-lib.a(unwind_test_arm64.o) 2 Answers

xcode build works for simulator and it does not work for device 0 Answers

Admob on IOS not working 1 Answer


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