hello there. Can I have a question? When trying to...
# multiplatform
d
hello there. Can I have a question? When trying to run iOS project within android studio, I got this warning.
Copy code
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:4A3FF487-BC00-41A1-AA9C-62DC19A6CDE4, OS:16.4, name:iPhone 14 }
{ platform:iOS Simulator, id:754EED8D-8E0C-4FA4-93EC-9C5622890561, OS:16.4, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:323B8C7A-80CB-40FB-9A8C-2C1C266FF2BF, OS:16.4, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:ED058C64-9CD2-42E1-A5B9-1A729A50D10D, OS:16.4, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:AC22BF13-34AD-431E-879E-1A36F6F48FDC, OS:16.4, name:iPhone SE (3rd generation) }
Where I can config that to a specific simulator?
t
'Edit configurations' > expand the 'iOS Application' > select 'iosApp' > Execution target
d
I’ve already did but it still showing the warning. and it also compiled with lower iOS development target. (my main project was 15)
j
You can configure it in Gradle:
Copy code
tasks.withType<KotlinNativeSimulatorTest>().configureEach { 
     device.set("iPhone 14") 
 }