Hi Erik,

I forgot to follow up, but I just wanted to say this approach worked. 

Thanks!

James

On Dec 9, 2015, at 5:22 PM, Erik Deijl <erik.deijl@gmail.com> wrote:

Hi James,

I set my TARGET_LD variable to `xcrun --sdk iphonesimulator -f ld`  (note, those are backticks, use them instead of normal quotes or double quotes) for the simulator (i386) and  `xcrun --sdk ìphoneos-f ld` for armand aarch64, these works for me.

Kind regards,

Erik

On Wed, Dec 9, 2015 at 10:08 PM, James Parker <jp@jamesparker.me> wrote:
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
_______________________________________________
iPhone mailing list
iPhone@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/iphone