Twitter: raymondcamden


Address: Lafayette, LA, USA

XCode "forgets" frameworks and bundles after a restart

06-25-2014 2,426 views Development, Misc 4 Comments

Just blogging this as I had trouble Googling for a solution when it hit me. I've been doing ObjectiveC work lately for the CreativeSDK project and I kept running into an odd problem. I'd set up a simple project, do some work on it, and when I returned the next day, any use of the CreativeSDK would fail. If I removed the frameworks and bundles from my project and re-added them, it worked again. The first time (OK, the first few times) this happened, I just assumed I made a mistake when adding it, but when it happened consistently, I figured something was up.

I turned to Stack Overflow where user Anthony suggested I look at the framework search property in my XCode project. When I did, I noticed something odd:

See the 3rd and 4th line item? That's actually one path: /Users/ray/Dropbox/Work Projects/CreativeSDK/frameworks. Apparently XCode had an issue with the space in the folder name. Because... I don't know. I mean - I've got a lot of respect for XCode now, especially after my ObjectiveC training, but come on, this is 2014 and it boggles my mind that I still run into programs that barf on spaces in folders. (Cordova did for quite some time as well.)

Anyway... yeah... don't do that.

4 Comments

  • Nick Collins #
    Commented on 06-25-2014 at 10:25 AM
    If you've never tried it, I would also suggest taking a look at Jetbrains AppCode 3. It offers tight integration with Reveal, and is really an awesome IDE.
  • Commented on 06-25-2014 at 11:24 AM
    Well, in general, I'm very happy with XCode. Now that I've had some training and grok it, it is very impressive. Hence me being so surprised by this frak up. :)
  • Michael Long #
    Commented on 06-25-2014 at 12:39 PM
    Xcode, CocoaPods, and other tools prefer (if not demand) command-line friendly pathnames. No spaces, and no odd-ball characters other than _ or -.

    Build a project once with a folder name of T&T and got all sorts of errors that I tracked down to a failed CocoaPods command line build.
  • Commented on 06-25-2014 at 12:55 PM
    It always surprises me that in 2014 we still have issues with spaces in path names. I am a little surprised to see Xcode having this particular issue, but then I'm paranoid about spaces in paths, and generally avoid them whenever possible (camelCaseFTW ;-) ).

    Nice catch, and glad you found the issue, even if it is whitespace related. sigh ;-)

Post Reply

Please refrain from posting large blocks of code as a comment. Use Pastebin or Gists instead. Text wrapped in asterisks (*) will be bold and text wrapped in underscores (_) will be italicized.

Leave this field empty