Post by fnllc on Oct 26, 2023 11:12:18 GMT
Hi,
I'm getting the following error after using rake run:iphone with iOS SDK 17 and XCode 15 (Rhodes 7.6dev18):
iMac-3:app username$ rake run:iphone
(in /Users/username/Documents/MyApps/MyApp)
[INFO] Using Rhodes configuration from path: rhobuild.yml
[INFO] Starting rhodes build system using ruby version: 2.7.8
[INFO] Detect Push options
[INFO] Its apple push
[INFO] applePush extension added
[INFO] Configuring app location: /Users/username/Documents/MyApps/MyApp
[INFO] $$$ XCode version is 15.0.1
[INFO] $$$ XCode version is 15.0.1
[INFO] $enable_bitcode = false
[INFO] SDK = iphonesimulator17.0
[INFO] Check SDK :
[INFO] $$$ RUN COMMAND = /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version -sdk iphonesimulator17.0
[INFO] iPhoneSimulator17.0.sdk - Simulator - iOS 17.0 (iphonesimulator17.0)
SDKVersion: 17.0
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
PlatformVersion: 17.0
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
BuildID: FC86BA6E-434D-11EE-88EC-4C619EE1A70C
ProductBuildVersion: 21A326
ProductCopyright: 1983-2023 Apple Inc.
ProductName: iPhone OS
ProductVersion: 17.0
-----
[INFO] start waiting for run application in Simulator
[INFO] start thread with execution of application
[INFO] use iphonesim tool - open iPhone Simulator and execute our application, also support device family (iphone/ipad)
[INFO] Execute command: /Users/username/GitHub/rhodes/res/build-tools/iphonesim/build/Release/iphonesim_8 launch "/Users/username/Documents/MyApps/MyApp/project/iphone/build/Debug-iphonesimulator/rhorunner.app" 17.0 iphone "/Users/username/Documents/MyApps/MyApp/rholog.txt"
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
Traceback (most recent call last):
6: from /Users/username/GitHub/rhodes/res/build-tools/iphonesim/build/Release/iphonesim_8:54:in `<main>'
5: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl.rb:39:in `method_missing'
4: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/command/create.rb:18:in `create_device'
3: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/executor.rb:10:in `execute'
2: from /Users/username/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/open3.rb:101:in `popen3'
1: from /Users/username/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/open3.rb:219:in `popen_run'
/Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/executor.rb:14:in `block in execute': Unable to create a device for device type: iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7), runtime: iOS 17.0 (17.0.1 - 21A342) - com.apple.CoreSimulator.SimRuntime.iOS-17-0 (RuntimeError)
[INFO] stop waiting - application started
[INFO] application is started in Simulator
----
build.yml:
name: "MyApp 2"
extensions:
- json
- rholang
- audiocapture
- mediacapture
- mediaplayer
- rhoconnect-client
# - fcm-push
# - development
capabilities:
- gps
- camera
- network_state
- vibrate
- sdcard
- hardware_acceleration
- push
env:
app: "/Users/username/Documents/MyApps/MyApp"
sdk: "/Users/username/GitHub/rhodes"
android:
minSDK: 33
targetSDK: 33
android_title: 0
manifest_template: "AndroidManifest.erb"
abis:
- arm
- aarch64
# - x86
version: "13.0"
emulator: "Pixel_7_Pro_API_33"
package_name: "com.myapps.myapp2"
build: "debug"
applog: "rholog.txt"
version: "4.1.8"
vendor: "My Apps"
sdkversion: "7.6"
# app_type: "rhoelements"
iphone:
ARCHS_device : ["arm64"]
enable_bitcode: false
iphone_use_new_ios7_status_bar_style: 1
provisioning_style: "Automatic"
development_team: "XXXXXXX"
BundleURLScheme: "myapp2"
BundleIdentifier: "com.myapps.myapp2"
sdk: "iphonesimulator17.0"
emulator: 17.0.1
emulatortarget: "iphone"
entitlements: ""
configuration: "Debug"
ipa_itunesartwork_image: "./production/iTunesArtwork.png"
## Note: Specifies the URL schemes the app is able to call using Rho.System.runApplication
## Note: Specifies list of HTTP domains for connect from application
## http_connection_domains:
## Note: Specifies set/modify of Info.plist keys with content(hash) - all of this items will be apply to final Info.plist of application. You can specify any Info.plist data in this parameter.
## this example content is equal of two upper parameters content (URLS schemes and HTTP domains) - you can use manually setup this parameters for more detailed setup instead default.
## in this example we show additional disable of perfect forward secrecy (PFS) for domain3(https)
info_plist_data:
NSAppTransportSecurity:
NSAllowsArbitraryLoads: false
NSAllowsArbitraryLoadsInWebContent: false
NSExceptionDomains:
localhost:
NSExceptionAllowsInsecureHTTPLoads: true
someurl.s3.amazonaws.com:
NSExceptionAllowsInsecureHTTPLoads: true
## NSExceptionDomains:
## coursewalkapp.com:
## NSIncludesSubdomains: true
## NSTemporaryExceptionAllowsInsecureHTTPLoads: true
NSBluetoothPeripheralUsageDescription: "App needs to use Bluetooth."
NSCalendarsUsageDescription: "App needs to use Calendar."
NSCameraUsageDescription: "Camera access is required to take pictures."
NSContactsUsageDescription: "App wants to use Contacts."
NSLocationAlwaysUsageDescription: "GPS access is required to record your course."
NSLocationWhenInUseUsageDescription: "GPS access is required to record your course."
NSMicrophoneUsageDescription: "Microphone access is required to record your voice notes."
NSMotionUsageDescription: "App needs to use Accelerometer."
NSPhotoLibraryUsageDescription: "Photo Library access is required to use photos in your library."
NSPhotoLibraryAddUsageDescription: "Photo Library access is required to add photos to your library."
NSRemindersUsageDescription: "App needs to use Reminders."
UIRequiresFullScreen: true
UIRequiredDeviceCapabilities:
- wifi
- location-services
UIBackgroundModes:
- location
- fetch
- remote-notifications
minify:
js: false
I'm getting the following error after using rake run:iphone with iOS SDK 17 and XCode 15 (Rhodes 7.6dev18):
iMac-3:app username$ rake run:iphone
(in /Users/username/Documents/MyApps/MyApp)
[INFO] Using Rhodes configuration from path: rhobuild.yml
[INFO] Starting rhodes build system using ruby version: 2.7.8
[INFO] Detect Push options
[INFO] Its apple push
[INFO] applePush extension added
[INFO] Configuring app location: /Users/username/Documents/MyApps/MyApp
[INFO] $$$ XCode version is 15.0.1
[INFO] $$$ XCode version is 15.0.1
[INFO] $enable_bitcode = false
[INFO] SDK = iphonesimulator17.0
[INFO] Check SDK :
[INFO] $$$ RUN COMMAND = /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version -sdk iphonesimulator17.0
[INFO] iPhoneSimulator17.0.sdk - Simulator - iOS 17.0 (iphonesimulator17.0)
SDKVersion: 17.0
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk
PlatformVersion: 17.0
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
BuildID: FC86BA6E-434D-11EE-88EC-4C619EE1A70C
ProductBuildVersion: 21A326
ProductCopyright: 1983-2023 Apple Inc.
ProductName: iPhone OS
ProductVersion: 17.0
-----
[INFO] start waiting for run application in Simulator
[INFO] start thread with execution of application
[INFO] use iphonesim tool - open iPhone Simulator and execute our application, also support device family (iphone/ipad)
[INFO] Execute command: /Users/username/GitHub/rhodes/res/build-tools/iphonesim/build/Release/iphonesim_8 launch "/Users/username/Documents/MyApps/MyApp/project/iphone/build/Debug-iphonesimulator/rhorunner.app" 17.0 iphone "/Users/username/Documents/MyApps/MyApp/rholog.txt"
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
[INFO] ... still waiting
Traceback (most recent call last):
6: from /Users/username/GitHub/rhodes/res/build-tools/iphonesim/build/Release/iphonesim_8:54:in `<main>'
5: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl.rb:39:in `method_missing'
4: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/command/create.rb:18:in `create_device'
3: from /Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/executor.rb:10:in `execute'
2: from /Users/username/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/open3.rb:101:in `popen3'
1: from /Users/username/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/open3.rb:219:in `popen_run'
/Users/username/.rvm/gems/ruby-2.7.8/gems/simctl-1.6.8/lib/simctl/executor.rb:14:in `block in execute': Unable to create a device for device type: iPhone 7 (com.apple.CoreSimulator.SimDeviceType.iPhone-7), runtime: iOS 17.0 (17.0.1 - 21A342) - com.apple.CoreSimulator.SimRuntime.iOS-17-0 (RuntimeError)
[INFO] stop waiting - application started
[INFO] application is started in Simulator
----
build.yml:
name: "MyApp 2"
extensions:
- json
- rholang
- audiocapture
- mediacapture
- mediaplayer
- rhoconnect-client
# - fcm-push
# - development
capabilities:
- gps
- camera
- network_state
- vibrate
- sdcard
- hardware_acceleration
- push
env:
app: "/Users/username/Documents/MyApps/MyApp"
sdk: "/Users/username/GitHub/rhodes"
android:
minSDK: 33
targetSDK: 33
android_title: 0
manifest_template: "AndroidManifest.erb"
abis:
- arm
- aarch64
# - x86
version: "13.0"
emulator: "Pixel_7_Pro_API_33"
package_name: "com.myapps.myapp2"
build: "debug"
applog: "rholog.txt"
version: "4.1.8"
vendor: "My Apps"
sdkversion: "7.6"
# app_type: "rhoelements"
iphone:
ARCHS_device : ["arm64"]
enable_bitcode: false
iphone_use_new_ios7_status_bar_style: 1
provisioning_style: "Automatic"
development_team: "XXXXXXX"
BundleURLScheme: "myapp2"
BundleIdentifier: "com.myapps.myapp2"
sdk: "iphonesimulator17.0"
emulator: 17.0.1
emulatortarget: "iphone"
entitlements: ""
configuration: "Debug"
ipa_itunesartwork_image: "./production/iTunesArtwork.png"
## Note: Specifies the URL schemes the app is able to call using Rho.System.runApplication
## Note: Specifies list of HTTP domains for connect from application
## http_connection_domains:
## Note: Specifies set/modify of Info.plist keys with content(hash) - all of this items will be apply to final Info.plist of application. You can specify any Info.plist data in this parameter.
## this example content is equal of two upper parameters content (URLS schemes and HTTP domains) - you can use manually setup this parameters for more detailed setup instead default.
## in this example we show additional disable of perfect forward secrecy (PFS) for domain3(https)
info_plist_data:
NSAppTransportSecurity:
NSAllowsArbitraryLoads: false
NSAllowsArbitraryLoadsInWebContent: false
NSExceptionDomains:
localhost:
NSExceptionAllowsInsecureHTTPLoads: true
someurl.s3.amazonaws.com:
NSExceptionAllowsInsecureHTTPLoads: true
## NSExceptionDomains:
## coursewalkapp.com:
## NSIncludesSubdomains: true
## NSTemporaryExceptionAllowsInsecureHTTPLoads: true
NSBluetoothPeripheralUsageDescription: "App needs to use Bluetooth."
NSCalendarsUsageDescription: "App needs to use Calendar."
NSCameraUsageDescription: "Camera access is required to take pictures."
NSContactsUsageDescription: "App wants to use Contacts."
NSLocationAlwaysUsageDescription: "GPS access is required to record your course."
NSLocationWhenInUseUsageDescription: "GPS access is required to record your course."
NSMicrophoneUsageDescription: "Microphone access is required to record your voice notes."
NSMotionUsageDescription: "App needs to use Accelerometer."
NSPhotoLibraryUsageDescription: "Photo Library access is required to use photos in your library."
NSPhotoLibraryAddUsageDescription: "Photo Library access is required to add photos to your library."
NSRemindersUsageDescription: "App needs to use Reminders."
UIRequiresFullScreen: true
UIRequiredDeviceCapabilities:
- wifi
- location-services
UIBackgroundModes:
- location
- fetch
- remote-notifications
minify:
js: false