Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an iOS Simulator Build (for Facebook review) [closed]

I'm following this guide, but when I run this command:

xcodebuild -arch i386 -sdk iphonesimulator7.1

I got this error:

** BUILD FAILED **

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

So please help me solve!

like image 284
hungbm06 Avatar asked Jun 11 '14 09:06

hungbm06


2 Answers

I've had similar problem with dependency targets...This post helped me, maybe it's your case too ios simulator build using workspace You should provide some more arguments in your build command like workspace and scheme

-workspace [Name.xcworkspace] -scheme [NameOfScheme]
like image 119
stellz Avatar answered Oct 07 '22 07:10

stellz


You should run:

xcodebuild -arch i386 -sdk iphonesimulator7.1 -workspace [name].xcworkspace -scheme [targetName or ProjectName]

also the path of the build maybe different to what Facebook mentioned in there documentation you can find the build under {Derived data directory}/build/Release-iphonesimulator/{projectname}.app

like image 39
Bobj-C Avatar answered Oct 07 '22 06:10

Bobj-C