iOS app issues Xojo version vs XCode version

  1. 3 months ago

    Olivier C

    Apr 12 Pre-Release Testers, Xojo Pro Europe (Belgium, France)
    Edited 3 months ago

    I have a app, running on my own iOS devices (iPhone, iPad) that needs some changes.
    This small app was developed, build and installed on devices a few weeks ago.

    Today, opening the app with

    • macOS Mojave (10.14.4)
    • Xojo 2018r4
    • Xcode 10.2 (command line installed)

    I get an error when running: trying to run an iOS project with no iOS devices configured
    There’s indeed no more simulator device in iOS debugging parameters and NO device comes up in the combo.

    Installed Xojo 2019r1, open same application:
    -> all devices are back in the simulator device combo

    But when running the app I’m getting errors on (see details below)

    • App Icon . Name
    • Launch Screen . Name

    I tried renaming Xcode to XCode10.2, re-downloaded Xcode 10.1 (and command line tools).
    Results:
    Xojo 2018r4: same problem, no simulator device, combo empty
    Xojo 2019r1: seems ok, but when I’m running the app I get a new error:

    Compilation failed
    An error occured when attempting to launch application. You may need to delete the application from the simulator

    Am I forced to use Xojo 2019r1 _and_ to stop XCode updates ?

    How do I changes this app now ?

    Thanks

    App Icon . Name

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>com.apple.actool.compilation-results</key>
    	<dict>
    		<key>output-files</key>
    		<array>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon20x20@2x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon20x20@3x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon29x29@2x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon29x29@3x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon40x40@2x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon40x40@3x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon60x60@2x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon60x60@3x.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon29x29~ipad.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon40x40~ipad.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon76x76~ipad.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon76x76@2x~ipad.png</string>
    			<string>/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/AppIcon83.5x83.5@2x~ipad.png</string>
    			<string>/private/var/folders/d1/vb5gld2n6_7clt874hfnsghw0000gn/T/TemporaryItems/com.xojo.xojo-temp-2/partial.plist</string>
    		</array>
    	</dict>
    	<key>com.apple.actool.errors</key>
    	<array>
    		<dict>
    			<key>description</key>
    			<string>Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2</string>
    			<key>failure-reason</key>
    			<string>Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2 (The operation couldn’t be completed. Invalid argument)</string>
    			<key>underlying-errors</key>
    			<array>
    				<dict>
    					<key>description</key>
    					<string>The operation couldn’t be completed. Invalid argument</string>
    					<key>failure-reason</key>
    					<string>Invalid argument</string>
    				</dict>
    			</array>
    		</dict>
    	</array>
    </dict>
    </plist>
    
    App Icon

    LaunchScreen . Name

    2019-04-12 08:43:02.482 ibtoold[51433:3234182] [MT] IBPlatformTool: *** Failed to launch tool with description <IBCocoaTouchPlatformToolDescription: 0x7f858c9568d0> System content for IBCocoaTouchFramework-ElevenAndLater <IBScaleFactorDeviceTypeDescription: 0x7f858c956700> scaleFactor=2x: Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7f858c9568d0> System content for IBCocoaTouchFramework-ElevenAndLater <IBScaleFactorDeviceTypeDescription: 0x7f858c956700> scaleFactor=2x'. These intermediate objects were non-nil: (
        "IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x)",
        "iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2"
    ) (Failure reason: Invalid argument): Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2 (Failure reason: Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2 (The operation couldn’t be completed. Invalid argument)): The operation couldn’t be completed. Invalid argument (Failure reason: Invalid argument)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>com.apple.ibtool.errors</key>
    	<array>
    		<dict>
    			<key>description</key>
    			<string>Failed to find or create execution context for description '&lt;IBCocoaTouchPlatformToolDescription: 0x7f858c9568d0&gt; System content for IBCocoaTouchFramework-ElevenAndLater &lt;IBScaleFactorDeviceTypeDescription: 0x7f858c956700&gt; scaleFactor=2x'. These intermediate objects were non-nil: (
        "IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x)",
        "iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2"
    )</string>
    			<key>failure-reason</key>
    			<string>Invalid argument</string>
    			<key>underlying-errors</key>
    			<array>
    				<dict>
    					<key>description</key>
    					<string>Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2</string>
    					<key>failure-reason</key>
    					<string>Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.2 (12.2 - 16E226) - com.apple.CoreSimulator.SimRuntime.iOS-12-2 (The operation couldn’t be completed. Invalid argument)</string>
    					<key>underlying-errors</key>
    					<array>
    						<dict>
    							<key>description</key>
    							<string>The operation couldn’t be completed. Invalid argument</string>
    							<key>failure-reason</key>
    							<string>Invalid argument</string>
    						</dict>
    					</array>
    				</dict>
    			</array>
    		</dict>
    	</array>
    </dict>
    </plist>
    
    LaunchScreen

    Unfortunately it seems that once you installed Xcode 10.2, Xojo 2018 is rendered useless for iOS apps.
    There is no simple workaround at the moment.

    If your license permits you to use Xojo 2019r1 then use it
    If not, you might need to reinstall macOS and make sure to install Xcode 10.1 only. I had the exact same problem and most of my business is iOS related.

  2. Olivier C

    Apr 12 Pre-Release Testers, Xojo Pro Europe (Belgium, France)

    EDIT:

    All simulators were gone (??) in Xcode / prefs / components
    I downloaded iOS 12.1 and 12.0

    Result is better but I’m still forced to use Xojo 2019r1

    Xojo 2018r4 - NOT OK with Xcode 10.1 neither Xcode 10.2: no simulator devices available
    Xojo 2019r1 - OK with Xcode 10.1 & 10.2: I can run, build, install on iOS device 12.1 and 12.2

  3. Jeff T

    Apr 12 Pre-Release Testers Midlands of England, Europe

    Xojo 2018r4 - NOT OK with Xcode 10.1 neither Xcode 10.2: no simulator devices available
    Xojo 2019r1 - OK with Xcode 10.1 & 10.2: I can run, build, install on iOS device 12.1 and 12.2

    Sadly, correct.
    Usual story: Apple changed something and broke Xojo 2018
    Xojo 2019 contains a workaround/fix/new method , call it what you will

  4. Jeremie L

    Apr 12 Pre-Release Testers, Xojo Pro, XDC Speakers Answer Europe (France) - getpackr.io

    Unfortunately it seems that once you installed Xcode 10.2, Xojo 2018 is rendered useless for iOS apps.
    There is no simple workaround at the moment.

    If your license permits you to use Xojo 2019r1 then use it
    If not, you might need to reinstall macOS and make sure to install Xcode 10.1 only. I had the exact same problem and most of my business is iOS related.

  5. Olivier C

    Apr 12 Pre-Release Testers, Xojo Pro Europe (Belgium, France)

    Thanks, I’ll keep on using 2019r1 for iOS...

or Sign Up to reply!