Posts

Post not yet marked as solved
0 Replies
609 Views
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.
Posted
by rmus18.
Last updated
.
Post not yet marked as solved
0 Replies
716 Views
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?
Posted
by rmus18.
Last updated
.
Post not yet marked as solved
4 Replies
950 Views
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.
Posted
by rmus18.
Last updated
.
Post marked as solved
2 Replies
2.2k Views
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
Posted
by rmus18.
Last updated
.