Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

** BUILD FAILED **

The following build commands failed:
    Ld build/Release-iphonesimulator/Olabord.app/Olabord 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...!

like image 924
Pantelis Proios Avatar asked May 30 '14 08:05

Pantelis Proios


1 Answers

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

like image 136
Tim Avatar answered Sep 19 '22 13:09

Tim