Difference between revisions of "Xcode"

From Lazarus wiki
Jump to navigationJump to search
Line 7: Line 7:
  
 
==Xcode 7.0==
 
==Xcode 7.0==
* If after the update to the version your projects are failing to compile and you're using FPC 2.6.4 (or earlier) -> change your debug info type from "Automatic" to "Dwarf". Apple's linker stops supporting .stabs information (which is used by default).
+
* If after updating to Xcode 7 your projects fail to compile and you are using FPC 2.6.4 (or earlier), change your debug info type from "Automatic" to "Dwarf". Apple's assembler no longer supports .Stabs debug information (which is used by default on i386).
 
* Alternatively you could download the previous version 6.4
 
* Alternatively you could download the previous version 6.4
**Download xcode 6.4 , and change the folder name to xcode6.4 before copy to /Application
+
**Download Xcode 6.4, and change the folder name to '''Xcode6.4''' before copy to /Application
**So you have two xcode now, and switch your command line tools using Xcode6.4  
+
**So you have two Xcode applications now, so switch your command line tools to using the ones from '''Xcode6.4''':
  # sudo xcode-select -switch /Applications/Xcode6.4/Xcode.app
+
  # sudo xcode-select -switch /Applications/Xcode6.4.app
 
* more to come for ARM (iOS) target.
 
* more to come for ARM (iOS) target.
  

Revision as of 15:44, 23 September 2015

Xcode (not XCode) is a unified Apple IDE for OSX and iOS development.

It must be installed on OSX in order to get all build utils, which FPC depends on.

Xcode 5.0

Apple removed "gdb" from it's binary utils. Lazarus is currently only able to used "gdb" as an external debugger. "Gdb" should be installed from the third party.

Xcode 7.0

  • If after updating to Xcode 7 your projects fail to compile and you are using FPC 2.6.4 (or earlier), change your debug info type from "Automatic" to "Dwarf". Apple's assembler no longer supports .Stabs debug information (which is used by default on i386).
  • Alternatively you could download the previous version 6.4
    • Download Xcode 6.4, and change the folder name to Xcode6.4 before copy to /Application
    • So you have two Xcode applications now, so switch your command line tools to using the ones from Xcode6.4:
# sudo xcode-select -switch /Applications/Xcode6.4.app
  • more to come for ARM (iOS) target.

See Also