Pantelis Proios Pantelis Proios - 1 year ago 115
iOS Question

Generate simulator build

I am working on an app that needs data from a Facebook app.
Facebook want a release simulator build. I have followed FB's instruction to the letter but when i try to build the simulator package

xcodebuild -arch i386 -sdk iphonesimulator7.1

i get the following error:

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)


The following build commands failed:
Ld build/Release-iphonesimulator/ normal i386
(1 failure)

I suspect that it has to do with cocoa pods but i don't know how to deal with it.
I desperately need guidance or a workaround...!

Tim Tim
Answer Source

I had the same problem. Since you're working with a workspace file with pods you need to run the following in Terminal:

xcodebuild -workspace {project name}.xcworkspace -scheme {project name}  -arch i386 -sdk iphonesimulator7.1

The FB instructions say the .app file should be in: {base directory}/build/Release-iphonesimulator/{projectname}.app

In my case it ended up in /Developer/Derived Data/{project name}-{long string of random letters}/Build/Products/Debug-iphonesimulator

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download