Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an iOS Simulator Build of CocoaPods project

I need to create a simulator build in order to submit my app to facebook team for further review of my open graph.

They have a instruction to create that here facebook instruction

But I use cocoapods and I can not make this build. everytime it gives me error.

like image 651
Shoeb Amin Avatar asked May 05 '14 22:05

Shoeb Amin


3 Answers

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

Follow the steps Click here

like image 95
Pradip Vanparia Avatar answered Nov 19 '22 14:11

Pradip Vanparia


Here is the another easy method to create .zip file

  • Step 1: open finder and press command⌘ + shift⇧ + g
  • Step 2: paste "~/Library/Developer/Xcode/DerivedData"
  • Step 3: select your_app_name-jkfksdfhskdhfksdh some thing like this folder
  • Step 4: your_app_name-jkfksdfhskdhfksdh >>Build>>Products>>Debug-iphonesimulator

  • Step 5: You will see 2 files one is your_app_name.app(icon like rounder and 1 cross line ) and 2nd file is your_app_name.app.dSYM

  • Step 6: To create .zip file right click on your_app_name.app and select "Compress your_app_name". It will generate .zip file and submit it to facebook.
like image 12
veeresh kumbar Avatar answered Nov 19 '22 14:11

veeresh kumbar


I'm in the same boat and have been struggling with this!

I managed to get my build working by adding the following to the command line args:

-workspace [Name.xcworkspace] -Scheme [NameOfScheme]

I also had to edit the scheme and add the Pods target explicitly as it was failing the build with Library not found for -lPods.

like image 6
bean Avatar answered Nov 19 '22 15:11

bean