Pooja Shah
Pooja Shah

Reputation: 997

How to build app for Facebook submission

I have app that need to submit on Facebook for review. The steps to create app for Facebook are given here: https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review

But i have simulators shown below: enter image description here

the command to build app shown in Facebook link is for simulator of iOS 7.1 now what command did I use to build my app? I am using Xcode 6.1.1 . Also for which sdks i should build my app to submit on Facebook? Please provide command for build and run that app in simulator to test .

Upvotes: 0

Views: 685

Answers (2)

Jagdeep
Jagdeep

Reputation: 1178

Run your app on simulator and go to location ~/Library/Developer/Xcode/DerivedData//Build/Products/-iphonesimulator/XXXX.app copy your .app file at any location create a compress zip file .submit this zip file to fb

Upvotes: 0

Anbu.Karthik
Anbu.Karthik

Reputation: 82769

your coding is fine continue the further work

//run this command 

 xcodebuild -arch i386 -sdk iphonesimulator8.1

you getting the following result

This should generate a build. If the build was successful you should see a lot of output from the build tools followed by the string ** BUILD SUCCEEDED ** in your terminal.

try this to resolve the failure

choice no - 1

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

need help use this link

choice no - 2

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

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

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

Upvotes: 1

Related Questions