Post not yet marked as solved
When showing PDF document in UIDocumentInteractionController and when tap on share button > Print, app crash.
Below is the crash log
*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [UIPrintPanelNavigationController shouldAutorotate] is returning YES'
It's a iPad app supporting Landscape orientation only. And its in Objective C.
Post not yet marked as solved
Hello,
I am working on an AR application using the IPad Pro 5th gen and I need to have more informations about the precision of the accelerometer and the gyroscope about this IPad Pro.
If anyone has informations about it or know how to get those informations, it will help me a lot !
Post not yet marked as solved
I’m creating a hybrid app using Swift and Angular. Angular content is loading on top of the Native Swift WkWebView.
Starting from iPad 10th generation only in the app initial launch header area become invisible(invisible means header text becomes white). But once I send the app to background and return to foreground header text becomes black and it will show without problem. I would really like to know whether this is a OS problem and if so is there any pro-grammatical solution for this?
if anyone can guide me to proper way fix this much a appreciated!!!
Environment:
・Device: iPad 10th generation
・OS:iPad OS 17.3.1
・Native App : Swift 5
Post not yet marked as solved
In 2 days we have observed in Crashlytics over 50 crashes related to PKDrawing.image with EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000210
So far all on iPads with A10, A12 and A13; 100% on iOS 17 (17.1.1, 17.2, 17.3) (while in others the percent of iOS 17 was around 60-80%).
Context:
Images of the varying frame and scale resulting in screen resolution are being generated sequentially (in a background serial queue called almost one after another when requested), updating one CALayer.contents (and only after this update on Main Thread the next generation is allowed). One zoomable PKCanvasView is present on screen.
The crashing line in code:
let image = drawing.image(from: frame, scale: renderScale).cgImage
The questions:
Is there anything that can be done apart from throttling generation?
Can the circumstances of the crash be determined – are there any indications accessible in code before calling PKDrawing.image that app might crash?
The traces:
0
AGXMetalA12
AGX::BlitContext<AGX::G11::Encoders, AGX::G11::Classes, AGX::G11::ObjClasses>::copyTextureToBuffer(IOGPUMetalResource const*, unsigned long, unsigned long, unsigned long, AGXA12FamilyTexture*, unsigned int, unsigned int, MTLOrigin, MTLSize, unsigned long) + 96
9
PencilKit
PKDrawing.image(from:scale:) + 28
0
AGXMetalA13
<redacted> + 96
9
PencilKit
PKDrawing.image(from:scale:) + 28
0
AGXMetalA10
<redacted> + 72
9
PencilKit
$s9PencilKit9PKDrawingV5image4from5scaleSo7UIImageCSo6CGRectV_12CoreGraphics7CGFloatVtF + 24
Post not yet marked as solved
According to a post on hackingwithswift.com, this should work on iOS/iPadOS:
import SwiftUI
struct ContentView: View {
@FocusState private var focused: Bool
@State private var key = ""
var body: some View {
Text(key)
.focusable()
.focused($focused)
.onKeyPress { press in
key += press.characters
return .handled
}
.onAppear {
focused = true
}
}
}
It does not work for me using a hardware keyboard on an iPad running the latest iPadOS 17.4 beta but it does work on my Mac.
FB13644182
Post not yet marked as solved
Hi!
Can anyone help me?
According to the compatibility list, I am supposed to be able to connect both of my devices ( sidecar), however whenever I use Bluetooth to connect both of them, my iPad displays a message saying that my Macbook is not supported.
I've already tried updating both devices to the latest updates, still now working...
What am I doing wrong?
Post not yet marked as solved
Hello,
I've been developing a web app which I need the front camera and need to take a picture at a higher resolution. But I have one issue. When I call navigator.mediaDevices.getUserMedia() in the browser to get the resolution of the camera, it shows it as 2052 x 2736. But it's a 12 MP front camera. I take a picture of myself using the camera app on the iPad and it shows 12 MP picture. The back camera reports it fine. You can also test it out on webcamtests.com to see the resolution.
Post not yet marked as solved
we have corp own devices (ipad's) that need to disable the ability of users to turn off the location services as well as airplane mode and GPS, how this can be done?
Thanks in advance
If two iOS/iPadOS devices have your app opened, is it possible to have the apps send data to each other over a wired connection?
E.g. If two iPhone 15s are connected by USB-C, can I get my app in iPhone A to send data to iPhone B and vice-versa?
I've been looking around for quite a while now and at this point I just want to know if it's technically feasible.
Post not yet marked as solved
I am getting below crash in reactive swift library. Will really appreciate any help in resolving it.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000016b33bfe0
Exception Codes: 0x0000000000000002, 0x000000016b33bfe0
VM Region Info: 0x16b33bfe0 is in 0x16b338000-0x16b33c000; bytes after start: 16352 bytes before end: 31
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_SMALL 15b800000-15c000000 [ 8192K] rw-/rwx SM=PRV
GAP OF 0xf338000 BYTES
---> STACK GUARD 16b338000-16b33c000 [ 16K] ---/rwx SM=NUL ... for thread 0
Stack 16b33c000-16b438000 [ 1008K] rw-/rwx SM=SHM thread 0
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [1677]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libswiftCore.dylib 0x000000019371c5a8 getCache(swift::TargetTypeContextDescriptorswift::InProcess const&) + 8 (Metadata.cpp:479)
1 libswiftCore.dylib 0x000000019371d108 swift_getGenericMetadata(swift::MetadataRequest, void const* const*, swift::TargetTypeContextDescriptorswift::InProcess const*) + 56 (Metadata.cpp:937)
2 ReactiveSwift 0x0000000107cdef74 __swift_instantiateGenericMetadata + 28 (:0)
3 ReactiveSwift 0x0000000107cfe3b8 specialized Signal.Core.send(:) + 540 (Signal.swift:115)
4 ReactiveSwift 0x0000000107d2b408 Signal.Observer.send(:) + 20 (Signal.Observer.swift:111)
5 ReactiveSwift 0x0000000107cf7390 closure #3 in closure #1 in closure #1 in Signal<>.observeSwitchToLatest(::) + 188 (Flatten.swift:677)
6 ReactiveSwift 0x0000000107d2b408 Signal.Observer.send(:) + 20 (Signal.Observer.swift:111)
7 ReactiveSwift 0x0000000107d195f8 Signal.Core.tryToCommitTermination() + 604 (Signal.swift:231)
8 ReactiveSwift 0x0000000107cfe3b8 specialized Signal.Core.send(:) + 540 (Signal.swift:115)
9 ReactiveSwift 0x0000000107d2b408 Signal.Observer.send(:) + 20 (Signal.Observer.swift:111)
10 ReactiveSwift 0x0000000107cf7390 closure #3 in closure #1 in closure #1 in Signal<>.observeSwitchToLatest(::) + 188 (Flatten.swift:677)
11 ReactiveSwift 0x0000000107d2b408 Signal.Observer.send(:) + 20 (Signal.Observer.swift:111)
12 ReactiveSwift 0x0000000107d195f8 Signal.Core.tryToCommitTermination() + 604 (Signal.swift:231)
13 ReactiveSwift 0x0000000107cfe3b8 specialized Signal.Core.send(:) + 540 (Signal.swift:115)
14 ReactiveSwift 0x0000000107d2b408 Signal.Observer.send(:) + 20 (Signal.Observer.swift:111)
15 ReactiveSwift 0x0000000107cf7390 closure #3 in closure #1 in closure #1 in Signal<>.observeSwitchToLatest(:_:) + 188 (Flatten.swift:677)
Here is Stack trace for the crash.
crashlog.txt
Post not yet marked as solved
There is an application on iPhone. The Action Extension is used, it works great on the iPhone, but when you add Destination = iPad, the application starts, works, but the extension does not work.
Error:
-[_EXSinkLoadOperator loadItemForTypeIdentifier:completionHandler:expectedValueClass:options:] nil expectedValueClass allowing {(
NSURL,
NSDictionary
_EXItemProviderSandboxedResource,
NSUUID,
NSDate,
NSArray,
NSData,
NSString,
NSNumber
NSError
UIImage,
NSValue
)}
The error occurs here:
if itemProvider.hasItemConformingToTypeIdentifier(typeImage) {
itemProvider.loadItem(forTypeIdentifier: typeImage, options: nil) { item, error in
Doesn't work on a real device, works on simulators. iOS 17.2, XCode 15.2.
On simulator first time the extension works and opens the main app, but on the second attempt the main app is not called (after selecting the extension, the image is kinda shadowed and then the shadow disappears). On simulator tested with iPad 6, iPad 9, iPad 10, iPad Air 6. On real iPad 6 does not work at all.
Post not yet marked as solved
hey! i have an ipad pro 11’ 2018, and everything was working fine until one day i wasn’t able to connect my apple pencil 2 to my ipad. the pencil itself gets detected it just won’t connect with my ipad. i already tried restarting, unpairing (even since i wasn’t able to pair it) and even restoring my ipad. does anyone have a solution for this?
Post not yet marked as solved
I am developing my app for the Swift Student Challenge 2024. I have made significant progress on it and have been building it on a M1 Mac, where it works perfectly. However, when testing it on some iPads (specifically, the iPad Pro 2018 and iPad Air 5 M1), it did not perform well on these devices.
I am wondering if I can specify whether the app should be reviewed on a Mac (M1 or later) or if it will be reviewed on an iPad.
Post not yet marked as solved
Hi everyone,
I'm working for an aircraft operator as an engineer. Our pilots use iPads for their operations and different applications on it. One of the application (Jeppesen FliteDeck Pro X) is using a feature that uses the GPS of the iPad (we use iPad 9th Wifi+Cellular).
In order to prove that the application is reliable for operations, we need to prove to the Authorities that the GPS of the iPad can receive more than 12 channels from satellites.
Does it exist a way to know approximately how many channels an iPad can receive? Or does a statement exist from Apple? We know that it is capable of, but we need to be able to prove it.
Your help would be greatly appreciated.
Thank you for your support.
Paul
Post not yet marked as solved
error: unknown command 'export:embed'
[[ '' == false ]]
EXTRA_COMPILER_ARGS=
[[ false == true ]]
EXTRA_COMPILER_ARGS=-O
[[ '' == true ]]
/Users/shubhanshu/Desktop/Wiingy/ios/Pods/hermes-engine/destroot/bin/hermesc -emit-binary -max-diagnostic-width=80 -O -out /Users/shubhanshu/Library/Developer/Xcode/DerivedData/wiingy-cnqwlfebgmfopbaucmgtdjbtyhpe/Build/Intermediates.noindex/ArchiveIntermediates/wiingy/BuildProductsPath/Release-iphoneos/wiingy.app/main.jsbundle /Users/shubhanshu/Library/Developer/Xcode/DerivedData/wiingy-cnqwlfebgmfopbaucmgtdjbtyhpe/Build/Intermediates.noindex/ArchiveIntermediates/wiingy/BuildProductsPath/Release-iphoneos/main.jsbundle
Error! Failed to open file: /Users/shubhanshu/Library/Developer/Xcode/DerivedData/wiingy-cnqwlfebgmfopbaucmgtdjbtyhpe/Build/Intermediates.noindex/ArchiveIntermediates/wiingy/BuildProductsPath/Release-iphoneos/main.jsbundle
[[ '' == true ]]
BUNDLE_FILE=/Users/shubhanshu/Library/Developer/Xcode/DerivedData/wiingy-cnqwlfebgmfopbaucmgtdjbtyhpe/Build/Intermediates.noindex/ArchiveIntermediates/wiingy/BuildProductsPath/Release-iphoneos/wiingy.app/main.jsbundle
[[ false != true ]]
[[ ! -f /Users/shubhanshu/Library/Developer/Xcode/DerivedData/wiingy-cnqwlfebgmfopbaucmgtdjbtyhpe/Build/Intermediates.noindex/ArchiveIntermediates/wiingy/BuildProductsPath/Release-iphoneos/wiingy.app/main.jsbundle ]]
Command PhaseScriptExecution emitted errors but did not return a nonzero exit code to indicate failure
Post not yet marked as solved
I figured out how to use a Mapkit offline in swift and make the map usable offline . Would a project with a Mapkit still be accepted in the contest?
Another question!
Are essays required this year? I don't see it in the requirements.
Post not yet marked as solved
if UIImagePickerController.isSourceTypeAvailable(.camera) {
let imagePicker = UIImagePickerController()
imagePicker.delegate = self
imagePicker.allowsEditing = false
imagePicker.sourceType = .camera
self.present(imagePicker, animated: true, completion: nil)
}
this code crashes on M2 Mac (Designed for iPad) with the following exception
<<<< FigCaptureCameraParameters >>>> Fig assert: "success" at bail (FigCaptureCameraParameters.m:249) - (err=0)
An uncaught exception was raised
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
(
0 CoreFoundation 0x0000000180b02800 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x00000001805f9eb4 objc_exception_throw + 60
2 CoreFoundation 0x0000000180a1a724 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 728
3 CoreFoundation 0x0000000180a1a420 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 52
4 AVFCapture 0x000000019de90374 -[AVCaptureFigVideoDevice _cameraInfo] + 200
5 AVFCapture 0x000000019de90278 -[AVCaptureFigVideoDevice updateStreamingDeviceHistory] + 36
6 AVFCapture 0x000000019deec8c0 -[AVCaptureSession _startFigCaptureSession] + 464
7 AVFCapture 0x000000019def0980 -[AVCaptureSession _buildAndRunGraph:] + 1936
8 AVFCapture 0x000000019deecc00 -[AVCaptureSession _setRunning:] + 120
9 AVFCapture 0x000000019deec46c -[AVCaptureSession startRunning] + 452
10 libRPAC.dylib 0x00000001051c9024 _replacement_AVCaptureSession_startRunning + 104
11 libdispatch.dylib 0x000000010509cf14 _dispatch_call_block_and_release + 32
12 libdispatch.dylib 0x000000010509eb4c _dispatch_client_callout + 20
13 libdispatch.dylib 0x00000001050a7cd8 _dispatch_lane_serial_drain + 864
14 libdispatch.dylib 0x00000001050a8dcc _dispatch_lane_invoke + 416
15 libdispatch.dylib 0x00000001050b877c _dispatch_root_queue_drain_deferred_wlh + 652
16 libdispatch.dylib 0x00000001050b7a54 _dispatch_workloop_worker_thread + 444
17 libsystem_pthread.dylib 0x0000000105147d9c _pthread_wqthread + 288
18 libsystem_pthread.dylib 0x000000010514fab4 start_wqthread + 8
)
Post not yet marked as solved
Hello,
Sometimes I need to send a message via sendMessageToProvider to tell the proxy service in NetworkExtension that it should be restarted
It looks like this:
self.sendMessageToProvider("restart"...) { resp
if resp != "ok" {
// stopVPNTunnel()...
}
}
Then accept the request in NetworkExtension, which looks like:
open override func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)?) {
reasserting = true
setTunnelNetworkSettings(nil) { error in
startTunnel() {
reasserting = false
completionHandler("ok"...)
}
}
}
But NetworkExtension crashes occasionally and I spent a long time looking for the cause but found nothing. Where should I start?
Date/Time: 2023-06-17 08:01:38.2104 +0800
Launch Time: 2023-06-17 08:01:06.5706 +0800
OS Version: iPhone OS 16.5 (20F66)
Release Type: User
Baseband Version: 3.70.01
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000022a76b2d0
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [38097]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libxpc.dylib 0x000000022a76b2d0 _xpc_api_misuse + 80 (debug.c:71)
1 libxpc.dylib 0x000000022a75c918 xpc_dictionary_set_value + 128 (dictionary.c:1849)
2 libxpc.dylib 0x000000022a75d888 xpc_dictionary_set_data + 60 (dictionary.c:1983)
3 NetworkExtension 0x00000001e1d69978 __35-[NEIPC handleMessage:withHandler:]_block_invoke + 112 (NEIPC.m:47)
4 PacketTunnel 0x0000000104f5be7c thunk for @escaping @callee_unowned @convention(block) (@unowned NSData?) -> () + 60 (<compiler-generated>:0)
5 PacketTunnel 0x0000000104f5bd4c MyPacketTunnelProvider.responseMessage(msg:completionHandler:) + 96 (MyPacketTunnelProvider.swift:188)
6 PacketTunnel 0x0000000104f5bd4c closure #1 in closure #1 in MyPacketTunnelProvider.handleAppMessage(_:completionHandler:) + 244 (MyPacketTunnelProvider.swift:178)
7 PacketTunnel 0x0000000104f5d808 closure #1 in closure #1 in closure #1 in MyPacketTunnelProvider.startTunnel(config:completionHandler:) + 12 (MyPacketTunnelProvider.swift:54)
8 PacketTunnel 0x0000000104f5d808 partial apply for closure #1 in closure #1 in closure #1 in MyPacketTunnelProvider.startTunnel(config:completionHandler:) + 32 (<compiler-generated>:0)
9 PacketTunnel 0x0000000104f5f720 closure #1 in closure #1 in xxxx.start(config:packetFlow:startCompletion:stoppedCompletion:) + 188 (xxxx.swift:140)
10 PacketTunnel 0x0000000104f5b4f0 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
11 libdispatch.dylib 0x00000001d1e21320 _dispatch_call_block_and_release + 32 (init.c:1518)
12 libdispatch.dylib 0x00000001d1e22eac _dispatch_client_callout + 20 (object.m:560)
13 libdispatch.dylib 0x00000001d1e316a4 _dispatch_main_queue_drain + 928 (queue.c:7794)
14 libdispatch.dylib 0x00000001d1e312f4 _dispatch_main_queue_callback_4CF + 44 (queue.c:7954)
15 CoreFoundation 0x00000001ca9ebc28 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
16 CoreFoundation 0x00000001ca9cd560 __CFRunLoopRun + 1992 (CFRunLoop.c:3147)
17 CoreFoundation 0x00000001ca9d23ec CFRunLoopRunSpecific + 612 (CFRunLoop.c:3418)
18 Foundation 0x00000001c4c52fd4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
19 Foundation 0x00000001c4c52e68 -[NSRunLoop(NSRunLoop) run] + 64 (NSRunLoop.m:398)
20 libxpc.dylib 0x000000022a761678 _xpc_objc_main + 496 (main.m:246)
21 libxpc.dylib 0x000000022a763924 xpc_main + 156 (init.c:1258)
22 Foundation 0x00000001c4c9a930 -[NSXPCListener resume] + 312 (NSXPCListener.m:460)
23 PlugInKit 0x00000001f1177e90 -[PKService run] + 356 (PKService.m:197)
24 PlugInKit 0x00000001f1164628 +[PKService main] + 536 (PKService.m:119)
25 PlugInKit 0x00000001f116393c +[PKService _defaultRun:arguments:] + 16 (PKService.m:244)
26 ExtensionFoundation 0x00000001d7fa5540 EXExtensionMain + 252 (EXExtensionMain.m:34)
27 Foundation 0x00000001c4cdee00 NSExtensionMain + 204 (NSExtensionMain.m:21)
28 dyld 0x00000001e9ed2dec start + 2220 (dyldMain.cpp:1165)
Post not yet marked as solved
**
I am having this issue when publishing my app in appstore and this issue does not appear in any simulator or on a real device when doing internal testing with test flight. But when testing with public link some times it shows the blank screen and after kill and re open the app for few times it works.
Do any one have solution for this? I tried so many options but not worked.
**
Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app. Specifically, your app landed on a blank screen. No content was loading. Please review the details below and complete the next steps.
Steps to reproduce:
Launch
Review device details:
Device type: iPad
OS version: iOS 17.1.2
Next Steps
Please run your app on a device to reproduce the issues, then revise and submit your app for review. If at first you're unable to reproduce the issue, try the following:
For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce.
For app updates, install the new version as an update to the previous version, then follow the steps to reproduce.
If we misunderstood the intended behavior of your app, please reply to this message in App Store Connect to provide information on how these features were intended to work.
Resources
For information about testing apps and preparing them for review, see Testing a Release Build.
To learn about troubleshooting networking issues, see About Networking.
Watch a video from App Store Review with tips for preventing common rejections.
Please see attached screenshot for details.
Post not yet marked as solved
I want to import a csv-file to my app. It works when I use the Simulator but when I try to import the same file on my iPad, the follwowing message occurs:
UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/4C49BACA-5490-45A4-A8DF-6D47711CFC34/File Provider Storage/LUSD 3.csv, NSUnderlyingError=0x2812068e0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}. Where do I find the right settings to enable the import of this csv-file?