I'm injecting some javascript into a WKWebview on iOS. At a certain point the web view spits out these warnings into the console and the javascript execution stops.
0x109018c40 - [PID=778] WebProcessProxy::gpuProcessExited: reason=IdleExit
0x109019200 - [PID=779] WebProcessProxy::gpuProcessExited: reason=IdleExit
Failed to terminate process: Error Domain=com.apple.extensionKit.errorDomain Code=18 "(null)" UserInfo={NSUnderlyingError=0x303c3c060 {Error Domain=RBSRequestErrorDomain Code=3 "No such process found" UserInfo={NSLocalizedFailureReason=No such process found}}}
I can't find any solution for this so am looking if anyone has any idea of what to try.
None of the WKWebview delegate functions trigger when this occurs so I can't attempt to reload the webview at this stage
Post
Replies
Boosts
Views
Activity
When performing xcodebuild docbuild I'm getting an error that I'm missing a module map for one of my Swift Packages I've included in the project. This is because I want to build the docbuild for iOS only, but have the Swift Package as a macOS only import
fatal error: module map file '/Users/administrator/Library/Developer/Xcode/DerivedData/AppName/Build/Intermediates.noindex/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/SQLite.modulemap' not found
The docbuild is as follows
xcodebuild docbuild \
-scheme *** \
-derivedDataPath ${DD_LOCATION} \
-configuration Release \
-sdk iphoneos \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
BUILD_DIR=${WORKSPACE}/build \
DEVELOPMENT_TEAM=*** \
The Swift package mentioned is added as macOS only with an optional linkage
and I have excluded the paths from source files which makes me able to run the app via xcode.
Is there anything else I should be doing to exclude this from being added to the iOS side of our project? Thanks in advance for any help.
I'm posting on here as this is generic for any Swift Packages which support iOS and macOS but important as a single OS package.
Updating our SDK and App with privacy manifests I'm struggling to understand what the PDF reports are used for.
Privacy Manifest Apple page
A few things which I can't find an answer for are;
What is the point of the PDF report? It seems filling in the manifests doesn't autofill the app privacy questions on app store connect
Is there a way for this report to be generated as part of an automated build process in xcodebuild?
In an iOS network extension setup as a Packet Tunnel. I am accepting packets in using NEPacketTunnelFlow and open a NWConnection up to the destination like so
let parameters = .quic(alpn: [])
let connection = NWConnection(to: .hostPort(host: host, port: port!), using: parameters)
but my state handler is never receiving the .ready state.
My NWConnection code works fine for TCP and DNS using
let parameters = .tcp // OR
let parameters = .udp
On my NWConnection state handler I am receiving .waiting with an error of dns. I am testing quic by navigating onto the Facebook app and with wireshark intercepting the traffic I can see the DNS queries resolving
I have NEDNSSettings applied to my NEPacketTunnelNetworkSettings
Is my issue to do with not passing in the alpn value or is there an extra permission/setting I am missing? I have not found a value which changes the outcome at all.
I have tried following [https://developer.apple.com/videos/play/wwdc2021/10094/) but no success.
I've managed to build this locally via xcode but when trying to create xcframeworks of this, I am unable to create a simulator archive to add to the xcframework.
Framework B has Excluded Architectures = [x86_64, arm64] for 'Any iOS Simulator SDK'
Framework A imports Framework B but has Exclude Source File Names = FrameworkB.framework, FrameworkB.xcframework] for Any iOS Simulator SDK'
So when using xcodebuild command
/usr/bin/xcodebuild clean archive \
-scheme FrameworkB \
-archivePath PATH/FrameworkB-iphoneos.xcarchive \
-configuration Release \
-sdk iphoneos \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
BUILD_DIR=PATH/build \
DEVELOPMENT_TEAM=TEAMID \
GCC_PREPROCESSOR_DEFINITIONS=""\
SWIFT_ACTIVE_COMPILATION_CONDITIONS=""
/usr/bin/xcodebuild clean archive \
-scheme FrameworkB \
-archivePath PATH/FrameworkB-iphonesimulator.xcarchive \
-configuration Release \
-sdk iphonesimulator \
-destination='generic/platform=iOS Simulator' \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
BUILD_DIR=PATH/build \
DEVELOPMENT_TEAM=TEAMID \
GCC_PREPROCESSOR_DEFINITIONS=""\
SWIFT_ACTIVE_COMPILATION_CONDITIONS=""
/usr/bin/xcodebuild -create-xcframework \
-framework PATH/FrameworkB-iphoneos.xcarchive/Products/Library/Frameworks/FrameworkB.framework \
-framework PATH/FrameworkB-iphonesimulator.xcarchive/Products/Library/Frameworks/FrameworkB.framework \
-output PATH/FrameworkB.xcframework
In the clean archive step for iOS Simulator I get
warning: None of the architectures in ARCHS (arm64, x86_64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (arm64, x86_64).
As I've excluded both them archs. This fails to produce a binary inside the xcarchive though. Which leads to
error: unable to read the file at 'PATH/FrameworkB-iphonesimulator.xcarchive/Products/Library/Frameworks/FrameworkB.framework/FrameworkB'
I would like to avoid all of this but this is the only way I've managed to get the project to build for arm64 simulator with the new M1 Macs.
Before FrameworkB built using x86_64 but contains libraries which don't support arm64. I have to exclude both archs though since Exclude Source File Names you can only specify Any iOS Simulator SDK rather than Only ARM64 iOS Simulator.
I've tried Excluding FrameworkB when importing the xcframework but I get While building for iOS Simulator, no library for this platform was found