I am publishing app to the AppStore but I am having trouble with export compliance. I have implemented Admob by Google so it is making HTTPS requests. Should I submit self classification report to the US government? I am in Czech Republic.
Post
Replies
Boosts
Views
Activity
In Swift there is a UIScreen.main.brightness = 1.0. But I couldn't find anything similar in SwiftUI. I need to adjust brightness in my watch os app. Is it even possible? Thanks in advance
I have an issue with my Apple Watch app extension. I don't know why but willActivate method in NotificationController is not being called. I am running it on new WatchOS 8 simulator. Any ideas what could be the problem and how to solve it? Thanks in advance
I've created this function for sharing image, but I have a problem.
func shareImg(img: UIImage) {
let imageShare = [ img ]
let activityViewController = UIActivityViewController(activityItems: imageShare as [Any] , applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
activityViewController.popoverPresentationController?.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
activityViewController.popoverPresentationController?.permittedArrowDirections = UIPopoverArrowDirection.init(rawValue: 0)
activityViewController.completionWithItemsHandler = { (type, _, _, error) in
print(error)
}
self.present(activityViewController, animated: true, completion: nil)
}
Every time I try to save image to photo library it gives me this error and it isn't saved.:
Error Domain=ALAssetsLibraryErrorDomain Code=-1 "Unknown error" UserInfo={NSLocalizedDescription=Unknown error, NSUnderlyingError=0x282e0ff60 {Error Domain=PHPhotosErrorDomain Code=3303 "(null)"}}
I've found that code 3303 refers to:
ALAssetsLibraryWriteIncompatibleDataError
And also it logs this into console:
[ShareSheet] connection invalidated
Can anyone please help me? Thanks in advance
Can I add my app to the sharing popup menu? (Like Facebook, Twitter and other apps) I would like to share image from iPhone photo library to my app. If yes could someone please leave me some starting point (documentation link). I couldn't find it anywhere.
I have an app that supports only iOS 14 or higher. Can user with older version of iOS buy this app? I don't want unhappy customers. Does AppStore handle this automatically?
Thanks in advance for response.
I have a problem with debuging crash log. I have tried debuging it in Xcode, but it is not pointing to any line of code. I don't know how to debug it. It crashed only on iPad (It crashed to some user in production). I think it is regarding PrintKit on thread 0. Can please someone help me? Thanks in advance
Code for displaying PrintController:
if UIPrintInteractionController.canPrint(pdfURL) {
let printInfo = UIPrintInfo(dictionary: nil)
printInfo.jobName = pdfURL.lastPathComponent
printInfo.outputType = .general
let printController = UIPrintInteractionController.shared
printController.printInfo = printInfo
printController.showsNumberOfCopies = false
printController.printingItem = pdfURL
printController.present(animated: true, completionHandler: nil)
}
Crash log:
Incident Identifier: INCIDENT ID
Hardware Model: iPad13,2
Process: **APP-NAME** [89317]
Path: /private/var/containers/Bundle/Application/**ID**/**APP-NAME**.app/**APP-NAME**
Identifier: BUNDLE ID
Version: 1.0 (4)
AppStoreTools: 13C88a
AppVariant: 1:iPad13,2:15
Code Type: ARM-64 (Native)
Role: Background
Parent Process: launchd [1]
Coalition: BUNDLE ID
Date/Time: 2022-01-05 09:09:35.5332 +0000
Launch Time: 2022-01-05 07:15:54.2451 +0000
OS Version: iPhone OS 15.1 (19B74)
Release Type: User
Baseband Version: 3.00.00
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b97c3558 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001831ccc6c _dispatch_sema4_timedwait + 64 (lock.c:154)
2 libdispatch.dylib 0x00000001831cd270 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3 PrintKit 0x00000001e4adf548 -[PK_HTTPProxy withProtocolSync:] + 252 (PKBonjour.m:232)
4 PrintKit 0x00000001e4adfa94 pk_proxyConnectHTTP + 572 (PKBonjour.m:264)
5 PrintKit 0x00000001e4af4a34 -[PKPrinter(PKPrinterPrivate) getAttributes:count:] + 240 (PKPrinter.m:2744)
6 PrintKit 0x00000001e4af1004 -[PKPrinter doMedia2:] + 84 (PKPrinter.m:1542)
7 PrintKit 0x00000001e4aee88c -[PKPrinter printInfoSupported] + 1216 (PKPrinter.m:969)
8 UIKitCore 0x000000018687ed04 -[UIPrinterUtilityTableViewController initWithPrinter:] + 588 (UIPrinterUtilityTableViewController.m:230)
9 UIKitCore 0x000000018687254c -[UIPrinterBrowserViewController printerInfoButtonTapped:] + 80 (UIPrinterBrowserViewController.m:578)
10 UIKitCore 0x0000000186871340 -[UIPrinterTableViewCell printerAccessoryViewInfoButtonPressed:] + 84 (UIPrinterBrowserViewController.m:327)
11 UIKitCore 0x000000018687054c -[UIPrinterAccessoryView infoButtonPressed:] + 92 (UIPrinterBrowserViewController.m:124)
12 UIKitCore 0x0000000185e2fbf0 -[UIApplication sendAction:to:from:forEvent:] + 100 (UIApplication.m:5360)
13 UIKitCore 0x0000000185f5ba4c -[UIControl sendAction:to:forEvent:] + 128 (UIControl.m:871)
14 UIKitCore 0x0000000185cd72c8 -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942)
15 UIKitCore 0x0000000185d73ae0 -[UIButton _sendActionsForEvents:withEvent:] + 160 (UIButton.m:4142)
16 UIKitCore 0x00000001860067c0 -[UIControl touchesEnded:withEvent:] + 536 (UIControl.m:637)
17 UIKitCore 0x0000000185acbd40 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:653)
18 UIKitCore 0x0000000185afe8c8 -[UIGestureEnvironment _updateForEvent:window:] + 784 (UIGestureEnvironment.m:1332)
19 UIKitCore 0x0000000185b0ba68 -[UIWindow sendEvent:] + 4428 (UIWindow.m:3265)
20 UIKitCore 0x0000000185cbb318 -[UIApplication sendEvent:] + 828 (UIApplication.m:11864)
21 UIKitCore 0x0000000185adec30 __dispatchPreprocessedEventFromEventQueue + 7904 (UIEventDispatcher.m:2290)
22 UIKitCore 0x0000000185ad3a1c __processEventQueue + 6760 (UIEventDispatcher.m:2597)
23 UIKitCore 0x0000000185ad8ec8 __eventFetcherSourceCallback + 172 (UIEventDispatcher.m:2669)
24 CoreFoundation 0x000000018357c020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972)
25 CoreFoundation 0x000000018358cce0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016)
26 CoreFoundation 0x00000001834c6fe8 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053)
27 CoreFoundation 0x00000001834cc7f4 __CFRunLoopRun + 820 (CFRunLoop.c:2951)
28 CoreFoundation 0x00000001834e03b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
29 GraphicsServices 0x000000019ee7038c GSEventRunModal + 164 (GSEvent.c:2200)
30 UIKitCore 0x0000000185e806a8 -[UIApplication _run] + 1100 (UIApplication.m:3493)
31 UIKitCore 0x0000000185bff7f4 UIApplicationMain + 2092 (UIApplication.m:5046)
32 SwiftUI 0x000000018b143258 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35)
33 SwiftUI 0x000000018b071534 runApp<A>(_:) + 252 (<compiler-generated>:0)
34 SwiftUI 0x000000018b052cb4 static App.main() + 128 (App.swift:114)
35 **APP-NAME** 0x0000000100fa08f0 $main + 28 (<compiler-generated>:10)
36 **APP-NAME** 0x0000000100fa08f0 main + 40 (TLContact.swift:0)
37 dyld 0x0000000101185a24 start + 520 (dyldMain.cpp:876)
EOF
I am trying to click a button programmatically using JavaScript. It is working in macOS Safari, but it doesn't work in iOS Safari. The document.getElementById("buttonid") returns the button, but when I click it, it doesn't do anything. I've spent a lot of time researching what could be the problem, but I couldn't find any solution. I assume it is somehow blocked on iOS.
Here is my code for clicking a button:
document.getElementById("buttonid").click();
Does anyone know what could be the problem? Thanks in advance