• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why are spaces in the source directory's name killing device builds but not simulator builds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are spaces in the source directory's name killing device builds but not simulator builds?


  • Subject: Why are spaces in the source directory's name killing device builds but not simulator builds?
  • From: G S <email@hidden>
  • Date: Sat, 23 Oct 2010 16:32:11 -0700

Hi all.

I'm having a perplexing problem, where device builds issue a bunch of
warnings about directories not being found, but it's because the
spaces in the volume name are not being handled correctly.  This only
happens in device builds but not simulator builds.  If you look at the
link commands, sure enough, you see that the string for the device is
formatted incorrectly.  The difference is fifth line, where there's an
extra -L& before each word of the volume name:

DEVICE:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch
armv6 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk
"-L/Volumes/software & work/projects/MyApp/app/MyApp/build/Debug-iphoneos"
"-L/Volumes/software & work/projects/MyApp/app/MyApp/libs"
-L"/Volumes/software -L& -Lwork/projects/MyApp/app/MyApp/libs"
"-L/Volumes/software & work/projects/MyApp/app/MyApp/libs"
"-F/Volumes/software &
work/projects/MyApp/app/MyApp/build/Debug-iphoneos" -filelist
"/Volumes/software &
work/projects/MyApp/app/MyApp/build/MyApp.build/Debug-iphoneos/MyApp -
device.build/Objects-normal/armv6/MyApp.LinkFileList" -dead_strip
-miphoneos-version-min=4.2 -framework Foundation -framework
CoreLocation -framework CoreGraphics -framework UIKit
-lboost_system_iosdevice -o "/Volumes/software &
work/projects/MyApp/app/MyApp/build/MyApp.build/Debug-iphoneos/MyApp -
device.build/Objects-normal/armv6/MyApp"


SIM:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2
-arch i386 -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk
"-L/Volumes/software &
work/projects/MyApp/app/MyApp/build/Debug-iphonesimulator"
"-L/Volumes/software & work/projects/MyApp/app/MyApp/libs"
"-L/Volumes/software & work/projects/MyApp/app/MyApp/libs"
"-F/Volumes/software &
work/projects/MyApp/app/MyApp/build/Debug-iphonesimulator" -filelist
"/Volumes/software &
work/projects/MyApp/app/MyApp/build/MyApp.build/Debug-iphonesimulator/MyApp
- simulator.build/Objects-normal/i386/MyApp.LinkFileList"
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2
-framework Foundation -framework CoreLocation -framework CoreGraphics
-framework UIKit -lboost_system_iossimulator -o "/Volumes/software &
work/projects/MyApp/app/MyApp/build/Debug-iphonesimulator/MyApp.app/MyApp"

The resulting complaints are:

ld: warning: directory '"/Volumes/software' following -L not found
ld: warning: directory '&' following -L not found
ld: warning: directory 'work/projects/MyApp/app/MyApp/libs"' following
-L not found

Has anyone else encountered this?

Thanks!

Gavin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Multiple instances of [NSUserDefaults standardUserDefaults]
  • Next by Date: Re: Multiple instances of [NSUserDefaults standardUserDefaults]
  • Previous by thread: Thread safety of CGEventSourceFlagsState()
  • Next by thread: fork/exec vs NSTask
  • Index(es):
    • Date
    • Thread