Build failed after SDK update

1,307 views
Skip to first unread message

Piotr Matalewski

unread,
Apr 20, 2015, 4:42:51 AM4/20/15
to rob...@googlegroups.com

After updating ios sdk to 8.2 I've got following error while building libgdx+robovm game:


Build failed. Check the RoboVM console for more information.

Cannot run program "2015-04-17 15:57:39.188 xcodebuild[22357:d07] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7f9f39c412b0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk'>': SDK with name 'iphoneos8.2' being superceded by SDK with 'iphoneos8.2'.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++": error=2, No such file or directory


SDKs contents:

drwxr-xr-x  5 root  wheel  170 12 mar 11:32 .

drwxr-xr-x  5 root  wheel  170 27 lut 01:17 ..

drwxr-xr-x  9 root  wheel  306 26 lut 23:30 iPhoneOS.sdk

lrwxr-xr-x  1 root  wheel   12 12 mar 11:32 iPhoneOS8.1.sdk -> iPhoneOS.sdk

lrwxr-xr-x  1 root  wheel   12 12 mar 08:54 iPhoneOS8.2.sdk -> iPhoneOS.sdk



Libgdx: 1.5.6

Robovm: 1.0.0



How to fix that?

Mario Zechner

unread,
Apr 21, 2015, 7:37:30 AM4/21/15
to rob...@googlegroups.com
Open up Xcode and make sure you agree to all dialogues that pop up. Also make sure your Xcode command line tools are installed, see https://developer.apple.com/library/ios/technotes/tn2339/_index.html

Finally, libGDX 1.5.6 should be used with RoboVM 1.1, not 1.0, so please update the RoboVM version in your build.gradle and make sure you use the latest RoboVM IDE plugin.

Piotr Matalewski

unread,
Apr 22, 2015, 7:49:59 AM4/22/15
to rob...@googlegroups.com
W dniu wtorek, 21 kwietnia 2015 13:37:30 UTC+2 użytkownik Mario Zechner napisał:
Open up Xcode and make sure you agree to all dialogues that pop up. Also make sure your Xcode command line tools are installed, see https://developer.apple.com/library/ios/technotes/tn2339/_index.html


I've done this. I'm using xcode for long time so that's not the case.
 
Finally, libGDX 1.5.6 should be used with RoboVM 1.1, not 1.0, so please update the RoboVM version in your build.gradle and make sure you use the latest RoboVM IDE plugin.

After updating robovm pluging and switching robovm to 1.1.0 whole eclipse crashes when robovm is compiling the project. What's even worse nothing appears in logs.

Mario Zechner

unread,
Apr 22, 2015, 9:18:21 AM4/22/15
to rob...@googlegroups.com
In your workspace directory, open .metadata/.log, both are hidden dirs/files. Please post the contents here.

Piotr Matalewski

unread,
Apr 22, 2015, 9:30:51 AM4/22/15
to rob...@googlegroups.com
The problem is, like I said there are no logs while crash. I deleted all contents of .metadata/.log file, started compilation and.. after crash log file remained empty. After reopening eclipse it's only saying that it closed incorrectly. That's all what's inside .log file:

!SESSION 2015-04-22 15:24:06.498 -----------------------------------------------
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=pl_PL
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/piotr/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/piotr/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.resources 2 10035 2015-04-22 15:24:31.679
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.core.net 1 0 2015-04-22 15:24:51.372
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences

!ENTRY org.eclipse.jface 2 0 2015-04-22 15:24:58.203
!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2015-04-22 15:24:58.203
!MESSAGE A conflict occurred for ALT+COMMAND+C:
Binding(ALT+COMMAND+C,
ParameterizedCommand(Command(de.bastiankrol.startexplorer.copyResourcePathToClipboardFromResourceView,Copy Resource Path to Clipboard,
Copies the path of the resource to the clipboard,
Category(de.bastiankrol.startexplorer.commands.category,StartExplorer,null,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@c69204e,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(ALT+COMMAND+C,
ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.modify.method.parameters,Change Method Signature,
Change method signature includes parameter names and parameter order,
Category(org.eclipse.jdt.ui.category.refactoring,Refactor - Java,Java Refactoring Actions,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@49c7e73f,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,cocoa,system)

Mario Zechner

unread,
Apr 22, 2015, 11:31:40 AM4/22/15
to rob...@googlegroups.com
Um, is there any way for us to reproduce this? I generated a new libGDX project (1.5.6), installed the latest RoboVM Eclipse plugin (1.1.0) and imported the project. That worked as intended.

If you can provide a project that fails for you we might be able to help. Otherwise it's going to be hard to figure out what's wrong.

Piotr Matalewski

unread,
Apr 27, 2015, 8:11:18 AM4/27/15
to rob...@googlegroups.com
I've just did the same thing as you and eclipse crashed as well. Fresh empty project... I guess that there's some problem with ios sdk configuration. Warning bothers me.

Running 

xcodebuild -sdk -version

shows:

2015-04-27 13:38:02.816 xcodebuild[1237:1007] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7ff9f8c3f580:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk'>': SDK with name 'iphoneos8.2' being superceded by SDK with 'iphoneos8.2'.


MacOSX10.9.sdk - OS X 10.9 (macosx10.9)
SDKVersion: 10.9
Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
PlatformVersion: 1.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
ProductBuildVersion: 13F26
ProductCopyright: 1983-2014 Apple Inc.
ProductName: Mac OS X
ProductUserVisibleVersion: 10.9.5
ProductVersion: 10.9.5



MacOSX10.10.sdk - OS X 10.10 (macosx10.10)
SDKVersion: 10.10
Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
PlatformVersion: 1.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
ProductBuildVersion: 14A383
ProductCopyright: 1983-2014 Apple Inc.
ProductName: Mac OS X
ProductUserVisibleVersion: 10.10
ProductVersion: 10.10



iPhoneOS8.1.sdk - iOS 8.2 (iphoneos8.2)
SDKVersion: 8.2
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk
PlatformVersion: 8.2
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
ProductBuildVersion: 12D508
ProductCopyright: 1983-2015 Apple Inc.
ProductName: iPhone OS
ProductVersion: 8.2



iPhoneSimulator8.2.sdk - Simulator - iOS 8.2 (iphonesimulator8.2)
SDKVersion: 8.2
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk
PlatformVersion: 8.2
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
ProductBuildVersion: 12D508
ProductCopyright: 1983-2015 Apple Inc.
ProductName: iPhone OS
ProductVersion: 8.2



Xcode 6.2
 
Build version 6C131e


It's the same warning as robovm console displayed. 

Do you use sdk 8.2 or 8.3? Mavericks or Yosemite?

Piotr Matalewski

unread,
Apr 27, 2015, 8:49:37 AM4/27/15
to rob...@googlegroups.com
I've just tried switching from eclipse kepler to luna and it's NOT crashing.
However our error from older version is back:

Build failed. Check the RoboVM console for more information.
Cannot run program "2015-04-27 14:41:04.005 xcodebuild[1669:d07] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7f80d0605ad0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk'>': SDK with name 'iphoneos8.2' being superceded by SDK with 'iphoneos8.2'.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++": error=2, No such file or directory

Error comes from clang++, but it exists:

ls -la /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin | grep clang++
lrwxr-xr-x   1 root  wheel         7 12 mar 08:56 c++ -> clang++
lrwxr-xr-x   1 root  wheel         5 12 mar 08:56 clang++ -> clang 

Mario Zechner

unread,
Apr 27, 2015, 11:38:57 AM4/27/15
to rob...@googlegroups.com
I'm running against SDK 8.3 on Yosemite, latest Xcode build. The crash is definitely due the SDK path collision error you see in your log output. I'm not yet sure how to resolve it though i'm afraid.

badlogic@Marios-MacBook-Pro:~/workspaces/robovm/robovm-debug$ xcodebuild -sdk -version

MacOSX10.9.sdk - OS X 10.9 (macosx10.9)

SDKVersion: 10.9

Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

PlatformVersion: 1.1

PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform

ProductBuildVersion: 13F34

ProductCopyright: 1983-2014 Apple Inc.

ProductName: Mac OS X

ProductUserVisibleVersion: 10.9.5

ProductVersion: 10.9.5


MacOSX10.10.sdk - OS X 10.10 (macosx10.10)

SDKVersion: 10.10

Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk

PlatformVersion: 1.1

PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform

ProductBuildVersion: 14D125

ProductCopyright: 1983-2015 Apple Inc.

ProductName: Mac OS X

ProductUserVisibleVersion: 10.10.3

ProductVersion: 10.10.3


iPhoneOS8.3.sdk - iOS 8.3 (iphoneos8.3)

SDKVersion: 8.3

Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk

PlatformVersion: 8.3

PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform

ProductBuildVersion: 12F69

ProductCopyright: 1983-2015 Apple Inc.

ProductName: iPhone OS

ProductVersion: 8.3


iPhoneSimulator8.3.sdk - Simulator - iOS 8.3 (iphonesimulator8.3)

SDKVersion: 8.3

Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk

PlatformVersion: 8.3

PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform

ProductBuildVersion: 12F69

ProductCopyright: 1983-2015 Apple Inc.

ProductName: iPhone OS

ProductVersion: 8.3


Xcode 6.3.1

Build version 6D1002

Piotr Matalewski

unread,
Apr 29, 2015, 2:43:04 AM4/29/15
to rob...@googlegroups.com
Hi, well after removing link do sdk 8.1 error switched to another one:

29.04.15 08:29:14: [DEBUG] Looking up developer disk image for iOS version 8.3 (12F70) in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
29.04.15 08:29:14: [ERROR] AppLauncher failed with an exception:
29.04.15 08:29:15: [ERROR] java.io.FileNotFoundException: No DeveloperDiskImage.dmg found in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport for iOS version 8.3 (12F70)
29.04.15 08:29:15: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.findDeveloperImage(AppLauncher.java:616)
29.04.15 08:29:15: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.mountDeveloperImage(AppLauncher.java:647)
29.04.15 08:29:15: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launchInternal(AppLauncher.java:699)
29.04.15 08:29:15: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launch(AppLauncher.java:1052)
29.04.15 08:29:15: [ERROR] at org.robovm.compiler.target.ios.AppLauncherProcess$1.run(AppLauncherProcess.java:67)

Does it mean I need 8.3 sdk to run my app now? My testing ipad has 7.1.1. Problem is in order to update sdk to 8.3 I need to update to yosemite as well :)

Piotr Matalewski

unread,
May 6, 2015, 2:29:33 AM5/6/15
to rob...@googlegroups.com
Can't I somehow set sdk to 8.2? Why library is looking for 8.3?

Piotr Matalewski

unread,
May 6, 2015, 7:53:43 AM5/6/15
to rob...@googlegroups.com
Just updated to yosemite and sdk 8.3. Eclipse kepler still crashes on compilation however on luna everything is working. Topic can be closed now, I think.
Reply all
Reply to author
Forward
0 new messages