apache / cordova-paramedic

Apache Cordova - Paramedic
https://cordova.apache.org/
Apache License 2.0
36 stars 53 forks source link

Build the app generally does not take into account the correct iOS version of a build #164

Open janpio opened 5 years ago

janpio commented 5 years ago

Example: https://travis-ci.org/apache/cordova-paramedic/jobs/552049310

$ export PLATFORM=ios-11.3
...
$ cordova build ios --no-telemetry --no-update-notifier
No simulator found for ". Falling back to the default target.
Building for "iPhone Xʀ" Simulator (com.apple.CoreSimulator.SimDeviceType.iPhone-XR, iPhone-XR).
Building project: /private/var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-2675110qq8i97H1p/platforms/ios/HelloCordova.xcworkspace
    Configuration: Debug
    Platform: emulator
    Target: iPhone Xʀ
Running command: xcodebuild -workspace HelloCordova.xcworkspace -scheme HelloCordova -configuration Debug -sdk iphonesimulator -destination platform=iOS Simulator,name=iPhone Xʀ build CONFIGURATION_BUILD_DIR=/private/var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-2675110qq8i97H1p/platforms/ios/build/emulator SHARED_PRECOMPS_DIR=/private/var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-2675110qq8i97H1p/platforms/ios/build/sharedpch
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /private/var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-2675110qq8i97H1p/platforms/ios/build/emulator
    SDKROOT = iphonesimulator12.2
    SHARED_PRECOMPS_DIR = /private/var/folders/17/5mc7816d3mndxjqgplq6057w0000gn/T/tmp-2675110qq8i97H1p/platforms/ios/build/sharedpch

It is run on the correct iOS version on Saucelabs though:

> CALL init({"name":"travis-apache/cordova-paramedic-724.8_Appium","idleTimeout":"100","maxDuration":5400,"platformName":"iOS","autoAcceptAlerts":true,"waitForAppScript":"true;","app":"sauce-storage:tzWEN3f8LJaUA3UOCoyvWi7ORMDUWxMB.zip","deviceType":"phone","deviceOrientation":"portrait","appiumVersion":"1.8.1","deviceName":"iPhone Simulator","platformVersion":"11.3"}) 
 > POST /session {"desiredCapabilities":{"name":"travis-apache/cordova-paramedic-724.8_Appium","idleTimeout":"100","maxDuration":5400,"platformName":"iOS","autoAcceptAlerts":true,"waitForAppScript":"true;","app":"sauce-storage:tzWEN3f8LJaUA3UOCoyvWi7ORMDUWxMB.zip","deviceType":"phone","deviceOrientation":"portrait","appiumVersion":"1.8.1","deviceName":"iPhone Simulator","platformVersion":"11.3"}}