Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 juliancruz · Sep 17, 2013 at 04:25 AM · ios7

Error when I updated to xcode 5 to get import to ios 7.

Hi, it's a first time that I seen this. "linker command failed with exit code 1 (use -v to see invocation)", I'd like to know how can I solve this error, because someone maybe happens before to me.

 **ld: warning: directory not found for option '-L"/Users/me/Projects/myapp/Builds/dev/Libraries"'** 
 ld: library not found for -liPhone-lib
 **clang: error: linker command failed with exit code 1 (use -v to see invocation)**
 
 
 Ld /Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvvkaydfohajmgdagqjznzyqunxp/Build/Products/myapp.app/myapp normal armv7
     cd /Users/me/Projects/myapp/Builds/SSS_dev
     setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
     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/iPhoneOS7.0.sdk 
 -L/Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvvkaydfohajmgdagqjznzyqunxp/Build/
 
 -filelist 
 /Users/me/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvvkaydfohajmgdagqjznzyqunxp/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/myapp.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -ObjC -all_load -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=6.0 
 
 /Users/olgacardenas/Projects/myapp/Unity3D/Game/Assets/Plugins/iOS/metaiosdk 
 
 -lxml2.2 
 -framework Foundation 
 -framework UIKit 
 -framework OpenGLES 
 -framework QuartzCore 
 -framework OpenAL 
 -liconv.2 
 -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 AdSupport 
 -weak_framework AssetsLibrary 
 -weak_framework CoreImage 
 -weak_framework MessageUI 
 -weak_framework Security 
 -weak_framework Social 
 -weak_framework StoreKit 
 -weak_framework Twitter 
 -framework Everyplay 
 -lChartboost 
 -lz.1.1.3 
 -lGameCenterPlugin 
 -lP31MonoBridge 
 -framework CoreTelephony 
 -framework MobileCoreServices 
 -framework MobileAppTracker 
 -lP31SharedTools 
 -weak_framework Accounts 
 -lfacebook_ios_sdk 
 -lP31Twitter 
 -lsqlite3.0 
 -lStoreKit 
 -Xlinker 
 -dependency_info 
 -Xlinker 
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
8
Best Answer

Answer by mattssonon · Sep 17, 2013 at 09:07 AM

Yeah, I've gotten this after updating as well. Here's the solution:

  1. In Xcode, click your target and open Build Settings

  2. Find Library Search Paths and remove all the escaped double quotes, e.g. from \"$(SRCROOT)/Libraries\" you remove \" so it becomes $(SRCROOT)/Libraries

Hopefully this will be fixed at some point, but this is the fix I've found for now.

EDIT: Thanks to Nico de Poel below, there is a much faster way to fix this, I have updated the guide above to show his solution.

Comment
Add comment · Show 7 · 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 jason-yi-kai · Sep 23, 2013 at 12:06 AM 0
Share

Hi $$anonymous$$att

I think have the same problem. I got the "Apple o-$$anonymous$$arch error" and said missing liPhone-lib. Can you explain the 3 & 4 steps a bit clearer for me? I don't get how to Remove Reference and the Re-add bit. Also I can't find the "Add Files" when i right click on the libraries folder. Your help will very appreciate.

Jas

avatar image mattssonon · Sep 23, 2013 at 08:47 AM 1
Share

Hi Jason, sure.

  1. Right-click libiPhone-lib.a in Libraries and click Delete

  2. Click Remove Reference in the pop-up

  3. Right-click the Libraries folder in Xcode and click Add Files to ... (C$$anonymous$$D + Option + A)

  4. Select the libiPhone-lib.a file and add it

This should create a working path to Libraries in Library Search Paths and make the Linker error go away.

avatar image jason-yi-kai · Sep 23, 2013 at 09:28 PM 0
Share

Hi $$anonymous$$att,

Thanks! The Linker error did go away, but sadly another error pop up... I guess I'll try rebuild the project

avatar image jason-yi-kai · Sep 24, 2013 at 04:12 AM 0
Share

Yes.. I delete the whole build folder and all the folders in library/xcode/developer/deriveddata. Then rebuild the project. It works!

avatar image just_jim · Apr 29, 2014 at 10:29 AM 0
Share

It solved the error for me as well. Thanks !

Show more comments
avatar image
3

Answer by Nico de Poel · Oct 18, 2013 at 03:43 PM

Looks like either Unity or Xcode incorrectly puts double quotes around the search path for the Libraries folder.

In the project's Library Search Paths, find the entry that looks like this:

\"$(SRCROOT)/Libraries\"

double click the entry to edit it and remove the escaped double quotes, so it looks like this:

$(SRCROOT)/Libraries

The project should now compile correctly again.

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 mattssonon · Nov 06, 2013 at 10:14 AM 0
Share

Awesome, you are correct!

avatar image
0

Answer by moosecanoes · Jun 17, 2015 at 03:21 AM

One of my forward slashes was screwed up in the build paths.... "iOS\Library/Plugins\IOS"

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 cherrypick-games · Jan 14, 2016 at 07:37 PM

Changing build paths didn't help me, but what (probably) did was moving the project to directory which did not have space in name (my projects directory name was 'Unity Projects'). So make sure you remove all the spaces in the path to libraries.

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.

Follow this Question

Answers Answers and Comments

20 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Apple just sent out a notice that as of February 1st apps must be built with iOS 7 SDK 0 Answers

IOS7 Game Center not showing banner achievements 1 Answer

Procedural Texture not working on iOS 0 Answers

Continue to support iOS 6.x ? 0 Answers

Unsupported shader while building for ios 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