[Haskell-iPhone] Upgrade scripts to XCode 7.2

James Parker jp at jamesparker.me
Wed Dec 9 21:08:09 UTC 2015


Hi,

I upgraded XCode to 7.2, however cabal-ios no longer works. When I run `cabal-ios install`, I get the following error. 

/usr/local/ghc-ios/i386-apple-darwin11-ld: line 8: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld: No such file or directory
/usr/local/ghc-ios/i386-apple-darwin11-ld: line 8: exec: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld: cannot execute: No such file or directory
Failed to install parsec-3.1.9

It looks like the scripts are now broken since Apple moved these files. Looking at my system, these are the only ld binaries available:

$ find /Applications/Xcode.app | grep \/ld$
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
/Applications/Xcode.app/Contents/Developer/usr/bin/ld

It doesn’t look like there is a different version for each platform anymore. Does anyone know which ld to use and how to update the ghc-ios-scripts? 

Thanks!

James


More information about the iPhone mailing list