Difference between revisions of "Xcode"
m |
m (xcodebuild command line) |
||
Line 1: | Line 1: | ||
− | The Apple' default IDE is quite hostile to FPC, since it doesn't provide any source of "native" integration. In order for the compiler to be called a custom [https://developer.apple.com/library/mac/recipes/xcode_help-project_editor/Articles/AddingaRunScriptBuildPhase.html '''Run Script'''] is needed to be used. | + | The Apple's default IDE is quite hostile to FPC, since it doesn't provide any source of "native" integration. In order for the compiler to be called a custom [https://developer.apple.com/library/mac/recipes/xcode_help-project_editor/Articles/AddingaRunScriptBuildPhase.html '''Run Script'''] is needed to be used. |
+ | |||
+ | However it comes with some handy command-line tools that could be used for building projects. | ||
+ | |||
+ | ==xcodebuild== | ||
+ | List all available SDKs | ||
+ | xcodebuild -showsdks | ||
+ | Build a project by it's (project directory) name and a specified sdk | ||
+ | xcodebuild -sdk iphonesimulator9.1 -project testProjGen.xcodeproj | ||
==Run Script== | ==Run Script== | ||
* in order to return an error, the (bash) script must use "exit" command with non-zero value. FPC returns a non-zero value when compiling failed. | * in order to return an error, the (bash) script must use "exit" command with non-zero value. FPC returns a non-zero value when compiling failed. | ||
[[Category:Xcode]] | [[Category:Xcode]] |
Revision as of 13:11, 28 November 2015
The Apple's default IDE is quite hostile to FPC, since it doesn't provide any source of "native" integration. In order for the compiler to be called a custom Run Script is needed to be used.
However it comes with some handy command-line tools that could be used for building projects.
xcodebuild
List all available SDKs
xcodebuild -showsdks
Build a project by it's (project directory) name and a specified sdk
xcodebuild -sdk iphonesimulator9.1 -project testProjGen.xcodeproj
Run Script
- in order to return an error, the (bash) script must use "exit" command with non-zero value. FPC returns a non-zero value when compiling failed.