Upgrade to XCode 6 broke my build environment for Visual Studio + Oxygene

I’ve upgraded XCode to the latest rev [XCode 6 GM seed] for Mavericks and now my build fails in Visual Studio 2012. My first reaction was to download the latest/stable build of elements.

I tried both methods of updating the fx files:

  1. Downloaded the zip file for iOS8, but no clue [and no instructions] on where to drop the fx files
  2. Drop XCode on the FxGen Window … getting this error:
    Error Summary:
    script(/var/folders/1j/67_0zdt11zndqpz5sgtyv_lw0000gn/T/432302246303.train)
    function processiOSSDK(8.0)
    function processiOSDeviceSDK(8.0)
    function processSDK({“version”:“8.0”,“sdkFolder”:"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk",“architectures”:[{“triple”:“armv7-apple-ios”,“defines”:[“arm”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”],“sdkType”:“ios”},{“triple”:“armv7s-apple-ios”,“defines”:[“arm”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”],“sdkType”:“ios”,“minimumTargetSDK”:“6.0”},{“triple”:“arm64-apple-ios”,“defines”:[“arm”,“arm64”,“LP64=1”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”],“sdkType”:“ios”,“minimumTargetSDK”:“6.0”,“minimumDeploymentTarget”:“6.0”}],“deploymentTargets”:[“6.1”,“5.1”,“4.3”],“environmentVersionDefine”:“ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED”})
    function doProcessSDK(8.0, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk, {“triple”:“armv7-apple-ios”,“defines”:[“arm”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”],“sdkType”:“ios”}, [“ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED=80000”,“arm”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”], /Users/kwonus/Library/Application Support/RemObjects Software/Oxygene/CrossBox/FX/iOS 8.0)
    function runHeaderImporterForSDK({“platform”:“armv7-apple-ios”,“outputpath”:"/Users/kwonus/Library/Application Support/RemObjects Software/Oxygene/CrossBox/FX/iOS 8.0/armv7-apple-ios",“defines”:[“ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED=80000”,“arm”,“LITTLE_ENDIAN”,“APPLE”,“APPLE_CC”,“MACH”,“GNUC=4”,“GNUC_MINOR=2”,“OBJC”,“OBJC2”,“NOUGAT”],“includeBlackList”:[“sys/_symbol_aliasing.h”,“sys/_posix_availability.h”,“sys/vstat.h”,“sys/_structs.h”,“sys/_select.h”,“sys/kauth.h”,“sys/acl.h”,“arm/_types.h”,“sys/event.h”,“sys/lctx.h”,“sys/quota.h”,“sys/vm.h”,“sys/acct.h”,“sys/dtrace.h”,“sys/dtrace_glue.h”,“sys/dtrace_impl.h”,“sys/fasttrap.h”,“sys/fasttrap_isa.h”,“sys/kern_control.h”,“sys/lockf.h”,“sys/mbuf.h”,“sys/netport.h”,“sys/pipe.h”,“sys/ptrace.h”,“sys/resourcevar.h”,“sys/sbuf.h”,“sys/socketvar.h”,“sys/ubc.h”,“sys/unpcb.h”,“sys/vmmeter.h”,“x86_64-apple-macosx:device/.h","i386-apple-ios:device/.h”,“AppleShareClientCore/afpHLMount.h”,“IOKit/OSMessageNotification.h”,“IOKit/iokitmig.h”,“CarbonCore/CarbonCore.h”,“vecLib/",“IOKit/IOHIDSessionPlugIn.h”,“IOKit/IOSharedLock.h”,"IOKit//.h","OSServices/”,“Kernel//.h”,“10.6:xpc/xpc.h”,“OpenAL/oalMacOSX_OALExtensions.h”,“libkern/OSKextLib.h”,“foo”,null],“includepaths”:["/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include"],“frameworkpaths”:["/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks"],“frameworks”:[“AVFoundation”,“AVKit”,“Accelerate”,“Accounts”,“AdSupport”,“AddressBook”,“AddressBookUI”,“AssetsLibrary”,“AudioToolbox”,“AudioUnit”,“CFNetwork”,“CloudKit”,“CoreAudio”,“CoreAudioKit”,“CoreAuthentication”,“CoreBluetooth”,“CoreData”,“CoreFoundation”,“CoreGraphics”,“CoreImage”,“CoreLocation”,“CoreMIDI”,“CoreMedia”,“CoreMotion”,“CoreTelephony”,“CoreText”,“CoreVideo”,“EventKit”,“EventKitUI”,“ExternalAccessory”,“Foundation”,“GLKit”,“GameController”,“GameKit”,“HealthKit”,“HomeKit”,“IOKit”,“ImageIO”,“JavaScriptCore”,“LocalAuthentication”,“MapKit”,“MediaAccessibility”,“MediaPlayer”,“MediaToolbox”,“MessageUI”,“Metal”,“MobileCoreServices”,“MultipeerConnectivity”,“NetworkExtension”,“NewsstandKit”,“NotificationCenter”,“OpenAL”,“OpenGLES”,“PassKit”,“Photos”,“PhotosUI”,“PushKit”,“QuartzCore”,“QuickLook”,“SafariServices”,“SceneKit”,“Security”,“Social”,“SpriteKit”,“StoreKit”,“SystemConfiguration”,“Twitter”,“UIKit”,“VideoToolbox”,“WebKit”,“iAd”],“version”:“8.0”,“type”:“ios”}, --import=rtl --forcenamespace=rtl --addfiles=“TargetConditionals.h;stdio.h;sys/.h;assert.h;ctype.h;errno.h;limits.h;locale.h;math.h;setjmp.h;signal.h;stddef.h;stdlib.h;time.h;inttypes.h;stdbool.h;stdint.h;arpa/.h;device/.h;CommonCrypto/.h;dispatch/dispatch.h;libkern/.h;malloc/.h;netinet/in.h;netinet/ip.h;netinet/tcp.h;objc/.h;uuid/.h;arm/limits.h;” -i ./ --sdkversion=“8.0”)
    shell.exec(/Applications/CrossBox.app/Contents/Resources/NougatFXGen.app/Contents/Resources/HeaderImporter.exe import -architecture=armv7-apple-ios -o “/Users/kwonus/Library/Application Support/RemObjects Software/Oxygene/CrossBox/FX/iOS 8.0/armv7-apple-ios” -d ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED=80000 -d arm -d LITTLE_ENDIAN -d APPLE -d APPLE_CC -d MACH -d GNUC=4 -d GNUC_MINOR=2 -d OBJC -d OBJC2 -d NOUGAT -b sys/_symbol_aliasing.h -b sys/_posix_availability.h -b sys/vstat.h -b sys/_structs.h -b sys/_select.h -b sys/kauth.h -b sys/acl.h -b arm/_types.h -b sys/event.h -b sys/lctx.h -b sys/quota.h -b sys/vm.h -b sys/acct.h -b sys/dtrace.h -b sys/dtrace_glue.h -b sys/dtrace_impl.h -b sys/fasttrap.h -b sys/fasttrap_isa.h -b sys/kern_control.h -b sys/lockf.h -b sys/mbuf.h -b sys/netport.h -b sys/pipe.h -b sys/ptrace.h -b sys/resourcevar.h -b sys/sbuf.h -b sys/socketvar.h -b sys/ubc.h -b sys/unpcb.h -b sys/vmmeter.h -b x86_64-apple-macosx:device/.h -b i386-apple-ios:device/.h -b AppleShareClientCore/afpHLMount.h -b IOKit/OSMessageNotification.h -b IOKit/iokitmig.h -b CarbonCore/CarbonCore.h -b vecLib/* -b IOKit/IOHIDSessionPlugIn.h -b IOKit/IOSharedLock.h -b IOKit//.h -b OSServices/* -b Kernel//.h -b 10.6:xpc/xpc.h -b OpenAL/oalMacOSX_OALExtensions.h -b libkern/OSKextLib.h -b foo -b undefined -i “/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/usr/include” -f /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks -s AVFoundation -s AVKit -s Accelerate -s Accounts -s AdSupport -s AddressBook -s AddressBookUI -s AssetsLibrary -s AudioToolbox -s AudioUnit -s CFNetwork -s CloudKit -s CoreAudio -s CoreAudioKit -s CoreAuthentication -s CoreBluetooth -s CoreData -s CoreFoundation -s CoreGraphics -s CoreImage -s CoreLocation -s CoreMIDI -s CoreMedia -s CoreMotion -s CoreTelephony -s CoreText -s CoreVideo -s EventKit -s EventKitUI -s ExternalAccessory -s Foundation -s GLKit -s GameController -s GameKit -s HealthKit -s HomeKit -s IOKit -s ImageIO -s JavaScriptCore -s LocalAuthentication -s MapKit -s MediaAccessibility -s MediaPlayer -s MediaToolbox -s MessageUI -s Metal -s MobileCoreServices -s MultipeerConnectivity -s NetworkExtension -s NewsstandKit -s NotificationCenter -s OpenAL -s OpenGLES -s PassKit -s Photos -s PhotosUI -s PushKit -s QuartzCore -s QuickLook -s SafariServices -s SceneKit -s Security -s Social -s SpriteKit -s StoreKit -s SystemConfiguration -s Twitter -s UIKit -s VideoToolbox -s WebKit -s iAd --version=8.0 --type=ios --import=rtl --forcenamespace=rtl --addfiles=“TargetConditionals.h;stdio.h;sys/.h;assert.h;ctype.h;errno.h;limits.h;locale.h;math.h;setjmp.h;signal.h;stddef.h;stdlib.h;time.h;inttypes.h;stdbool.h;stdint.h;arpa/.h;device/.h;CommonCrypto/.h;dispatch/dispatch.h;libkern/.h;malloc/.h;netinet/in.h;netinet/ip.h;netinet/tcp.h;objc/.h;uuid/.h;arm/limits.h;” -i ./ --sdkversion=“8.0” -q objc/NSObject.h:Foundation -q objc/NSObjCRuntime.h:Foundation)
    Failed with error code: 1
    Error when calling Process.Execute: Failed with error code: 1

What version of Oxygene are you using? the latest version should offer to automatically download and extract the iOS 8 zip for you into the right folder (which is Program Files\RemObjects Software\Elements\Nougat\SDKs). This should be happening with the July release or later.

The latest version should also handle the manual import of Xcode 6 SDKs fine (though that doesn’t give you anything the downloaded .zip doesn’t, as well).

I downloaded the Elements release yesterday. So it would be the July release. After updating Elements, it did offer to download the latest SDK and it looks like it did. But when it was finished, my iOS project still wouldn’t build in VS 2012. So I closed VS 2012 and closed cross-box. I re-opened the solution in VS 2013 and restarted cross-box. Now it’s working. Thanks!

Hmm, so it works in VS2013, but still doesn’t in VS2012? or did/does it work in VS2012 as well after the restart? (restart should not be necessary, after the SDK download — but of course that may be a bug).

—marc

Just tested this tonight … My OSX project now builds in VS 2012. So the fix seems to have been restarting Visual Studio and/or restarting CrossBox. I think I’m about ready to switch over to Fire. Visual Studio just isn’t as stable as it once was.

1 Like