ios - Xcode6 blocks some static libs in static lib, but not others -


until xcode6, had:

  1. library target "appshared" builds static lib , embeds multiple other static libs
  2. multiple apps embed static lib appshared, , automatically embedded static libs too

now, xcode6, , new 3rd party static lib (from mixpanel, never quite seem know they're doing packaging ios binaries), score refuses embed new static lib, saying:

"can't locate file -l[library name] file: -l[library name] not object file (not allowed in library)"

what's wrong new library, , ... ideas have ask provider fix in build setup? (they don't share source, sadly)

facepalm

it's bug in xcode 6 - nothing particular library.

xcode no longer supports spaces in folder names, though has been core requirement apple corp mac software > 15 years; apparently, don't test xcode more, , wrote bad code (probably: used wrong (20 years old) method calls manipulating file paths; if they'd used correct ones, space-handling automatic , implemented os, ime!)


solution: when drag/drop libraries xcode 6, if there space in folder name, xcode corrupt build settings, , add library-import-path each word in folder name.

you have edit build settings, find library search paths, , you'll see has lots of stupid values. delete those, put real path, , surround in double-quotes.

all work fine.


Comments