Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-11 Thread via GitHub


breautek commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1988326526

   > Agree, iPhone X is quite old. But Cordova 
[supports](https://cordova.apache.org/docs/en/12.x/guide/platforms/ios/index.html)
 iOS 11.0+, so I expect it to support such devices.
   
   Cordova supports iOS 11.0+ with the appropriate XCode version (e.g. 11.x). 
However newer XCode versions may drop support for certain simulators, or it may 
not be available by default. If you're distributing to the Apple App Store, 
then you'll be restricted to the XCode requirements imposed by Apple (currently 
XCode 14, but will require XCode 15 starting in April 2024), and be restricted 
to the simulators supported by those XCode versions.
   
   Personally I'd like to see the min version bumped to something a bit more 
modern but the community has voted against that on our last major release cycle.
   
   > Build succeeded, and an app was deployed to simulator. But it was not 
opened automatically: console output contained the following error 
(https://github.com/apache/cordova-ios/issues/1362 is about it).
   
   Not 100% sure on this but I think this is related to how Apple handles 
simulators. There's a "backend" service (aka `simctl`) that runs the 
simulators. The simulators can be ran headless, and there is an independent 
application called `Simulator` to actually run the GUI. So you can have 
simulators running without the `Simulator` app running. So it sounds like the 
`Simulator` application isn't opened, but `simctl` has the simulator running in 
the background already. Not saying this isn't an issue or a bug, but opening 
the `Simulator` app might be a simple workaround. If the workaround doesn't 
work then I think we can proceed that discussion in #1362.
   
   > Some of such files (marked by XCode as 'stale') were not found while 
building via CLI. Can it be related?
   
   The stale files is unrelated and has it's own issue reported at 
https://github.com/apache/cordova-ios/issues/1372.
   
   I'm closing this issue because I don't think there is anything actionable 
here, and the issue about the sim app not launching after booting the simulator 
(or attempting to boot it when it's already booted) is already being tracked in 
#1362 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-11 Thread via GitHub


breautek closed issue #1371: `cordova run ios --target=iPhone-X` causes build 
error
URL: https://github.com/apache/cordova-ios/issues/1371


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-09 Thread via GitHub


contfedorov commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1986939700

   @erisu 
   Also want to pay your attention to the following. Building the same project 
via XCode succeeds, but contains warnings (full list is in the beginning of the 
issue) like this:
   
   ```
   Stale file 
'/platforms/ios/build/Debug-iphonesimulator/include/Cordova/CDVAppDelegate.h'
 is located outside of the allowed root paths.
   ```
   
   Some of such files (marked by XCode as 'stale') were not found while 
building via CLI. Can it be related?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-09 Thread via GitHub


contfedorov commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1986938421

   @erisu 
   
   Agree, iPhone X is quite old. But Cordova 
[supports](https://cordova.apache.org/docs/en/12.x/guide/platforms/ios/index.html)
 iOS 11.0+, so I expect it to support such devices.
   
   I've checked using 2 other target simulators. Both were up and running 
before building.
   - iPhone 13 w/ iOS 15.5 (`cordova run ios --target=iPhone-13`). Here the 
result was the same: can't find several Cordova-related .h-files
   - iPhone 15 w/ iOS 17.2 (`cordova run ios --target=iPhone-15`). Here the 
result differs. Build succeeded, and an app was deployed to simulator. But it 
was not opened automatically: console output contained the following error 
([#1362](https://github.com/apache/cordova-ios/issues/1362) is about it).
   
   ```
   ** BUILD SUCCEEDED **
   
   Deploying to simulator
   [ios-sim] device.name: iPhone 15
   
   [ios-sim] device.runtime: iOS 17.2
   
   [ios-sim] device.id: 4427ED4E-C75F-4FCF-8E2D-C582F0440B01
   
   Error: Unhandled error. ('[ios-sim] Simulator already running.\n')
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-07 Thread via GitHub


erisu commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1985010695

   While this might not be directly related, please ensure that you have the 
iPhone X simulator installed.
   
   iPhone X is considered an older device now. It's worth noting that Xcode may 
no longer include iPhone X as a default "Run Destination". I had to manually 
add it.
   
   To do so, you'll need to open Xcode and follow these steps:
   
   1. Go to Product -> Destination -> Manage Run Destinations...
   2. In the window that opens, select "Simulators" on the left.
   3. Confirm if "iPhone X" is listed
   
   If it's not, you'll need to add it by clicking the "+" button at the bottom.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-07 Thread via GitHub


contfedorov commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1984995976

   @erisu 
   I have followed exactly steps you've described: created empty new project 
and run it. Well, just run `cordova platform add ios@latest` command without 
`@latest`.
   
   I also don't run it on real device, but on simulator.
   
   I can try to check further. Hope this is just my local configuration 
problem. Maybe you can point me any direction I should follow?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-07 Thread via GitHub


erisu commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1984971452

   @contfedorov, I'm not entirely sure what "re-creating project from scratch" 
entails, but have you attempted creating a new sample project with no 
modifications other than adding the iOS platform?
   
   You mentioned in the ticket:
   > First, I've checked via my current project (not using the sample one).
   
   I would suggest trying with the minimum steps:
   ```
   cordova create cdvTestProject
   cd cdvTestProject
   cordova platform add ios@latest
   cordova run ios --target=iPhone-X
   ```
   
   No code changes, configuration file modifications, plugin or resource 
additions are made, and the project is not opened in Xcode.
   
   Also, please note that I am not using a device for testing. I do not have a 
device plugged into my Mac. I am using a simulator for this test.
   
   If the issue persists with a sample/blank project, I am leaning more towards 
your environment being the issue.
   
   I don't believe upgrading Xcode or macOS will necessarily make a difference, 
but it's worth noting that Apple has stated that as of April 2024, all apps 
submitted to the App Store must be built with a minimum of Xcode 15 and the iOS 
17 SDK. Eventually, you will need to upgrade. However, I don't expect it to 
change the outcome of this issue.
   
   If the problem doesn't occur with the blank sample project, I suggest adding 
plugins, other platforms, and application code one by one and building in 
between, until you identify what causes the issue.
   
   Since I'm unable to reproduce this problem, it will be challenging for me to 
determine the cause of your issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-07 Thread via GitHub


contfedorov commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1984129487

   @erisu 
   Double-checked this by re-creating project from scratch. Can confirm: an 
issue is reproducible on my machine. Build process can't find native imports 
(``, etc.) Here is my setup. Any steps should I take 
to align it with yours? Upgrade Node.js/macOS?
   
   ```
   % cordova info
   
   Cordova Packages:
   
   cli: 12.0.0
   common: 5.0.0
   create: 5.0.0
   lib: 12.0.1
   common: 5.0.0
   fetch: 4.0.0
   serve: 4.0.1
   
   Project Installed Platforms:
   
   ios: 7.0.1
   
   Project Installed Plugins:
   
   
   Environment:
   
   OS: macOS Sonoma 14.1.1 (23B81) (darwin 23.1.0) x64
   Node: v18.17.0
   npm: 9.6.7
   
   ios Environment:
   
   xcodebuild:
   Xcode 15.2
   Build version 15C500b
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2024-03-07 Thread via GitHub


erisu commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1982855954

   I was unable to reproduce this issue.
   
   My Example Project Data
   
   ```
   $ cordova info
   Cordova Packages:
   
   cli: 12.0.0
   common: 5.0.0
   create: 5.0.0
   lib: 12.0.1
   common: 5.0.0
   fetch: 4.0.0
   serve: 4.0.1
   
   Project Installed Platforms:
   
   ios: 7.0.1
   
   Project Installed Plugins:
   
   
   Environment:
   
   OS: macOS Sonoma 14.2.1 (23C71) (darwin 23.2.0) arm64
   Node: v18.18.2
   npm: 9.8.1
   
   ios Environment:
   
   xcodebuild:
   Xcode 15.2
   Build version 15C500b
   ```
   
   Running command `cordova run ios --target=iPhone-X` will build and deploy 
the app successfully to iPhone X.
   
   ```
   ** BUILD SUCCEEDED **
   
   Deploying to simulator
   [ios-sim] device.name: iPhone X
   
   [ios-sim] device.runtime: iOS 16.1
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] `cordova run ios --target=iPhone-X` causes build error [cordova-ios]

2023-12-13 Thread via GitHub


contfedorov commented on issue #1371:
URL: https://github.com/apache/cordova-ios/issues/1371#issuecomment-1855326585

   @scr2em 
   No, I didn't. Just run from XCode or use regular `cordova run ios`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org