breautek commented on issue #1005:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/1005#issuecomment-2215314120

   With the current version of cordova-ios and the in-app-browser plugin, AND 
iOS 16.4 or later, you can debug the webview on both the main cordova webview, 
and the in-app browser webview by setting the `InspectableWebview` preference 
to true. It will be enabled including on release builds if you explicitly set 
it to true.
   
   You can do this by adding this in your `config.xml`:
   
   ```xml
   <widget ...>
   ...
   <preference name="InspectableWebview" value="true" />
   ```
   
   This does mean that anyone who runs your app will be able to connect to the 
safari web inspector and run arbitrary code against your app, etc. So it may be 
an option you want to disable for actual production releases.
   
   On iOS 16.3 and earlier the ability to control the inspector did not exist 
and it was only available in debug builds. So for the above to work, you need 
to be on iOS 16.4 or later.
   
   > @breautek , there is an option to set the archive "scheme" to archive a 
debug build in Xcode. If I put this "debug" mode archive into TestFlight I am 
guessing I will be able to install that build onto my device, and finally 
inspect it. Fingers crossed.
   
   Testflight runs through the app store, without actually publishing to the 
app store. So by uploading to testflight, you're actually just uploading to the 
app store (without publishing that binary to your consumers). Because of that 
the same app-store checks on binary uploads are done. Debug builds includes 
both the iphone sdk build the iphonesimulator builds and the upload checks I'm 
fairly certain will reject binaries in which includes the iphonesimulator 
packed.
   
   The debug binaries includes the iphonesimulator sdk build which is why I 
don't think uploading a Debug binary will work. At the very least you'll need 
to limit the scheme to build only the iphoneos arm64 binaries, which you'll 
need to configure the xcode settings to do so. But I'm pretty sure Apple will 
also reject binaries built in Debug mode as well as they do not have the 
expected optimization levels for release deployments, even if you intend to 
only publish the binary through your testflight channel. Anyway, like I said 
above you don't need to do this, just set the `InspectableWebview` to true and 
test on a iOS 16.4 or later device.


-- 
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

Reply via email to