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…!

  • Cannot use a predicate that compares dates in Magical Record
  • UIPageViewController and removing current view controller
  • ld: library not found for -lGoogleAdMobAds
  • Firebase query - Find item with child that contains string
  • Camera image orientation
  • Multitouch tracking issue
  • 6 Solutions Collect From Internet About “Generate simulator build”

    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

    Tim’s answer might work, but if it doesn’t go to the following path.Library/Developer/Xcode/DerivedData/your_application/Build/Products/Debug-iphonesimulator/your_application.app I sent that file (compressed) to Facebook and they accepted it.

    xcodebuild -arch i386 -sdk iphonesimulator{version} -workspace [projectName].xcworkspace -scheme [projectName]
    

    Follow the steps Click here

    For xcodeworkshp pls make use of below command in terminal:

    xcodebuild -workspace {project name}.xcworkspace -scheme {project name} -arch i386 -sdk iphonesimulator{your version supported}
    

    If you want to compile in 64 bits (avoiding ‘This app will not work with future versions of iOS’ message):

    xcodebuild -workspace {project name}.xcworkspace -scheme {project name} -arch x86_64 ONLY_ACTIVE_ARCH=NO -sdk iphonesimulator10.3
    

    1)Clean the derived data.

    2)Select the simulator and make a build.

    3)open finder and goto the path i.e. ~/Library/Developer/CoreSimulator/

    4)Then go into the devices then goto into the other folder then go into the data then go into the containers then go into the bundle then go into the application then you will see folder which name in numeric form copy that folder and paste it to other location.

    5) Again come back from the application folder you will see the data folder then go into the data folder again you will see the application folder and under the application folder you will see other folder with numeric name the copy the numeric name folder and paste the folder on the same place where you paste the last application folder.

    6) Share above two folder with the tester or anyone which want the simulator build.