Welcome to the Apple Developer Forums:

Find answers, ask questions, and share comments on development topics with fellow developers and Apple engineers. 

To get started, search for keywords (like “app distribution”), standard tags (like [SwiftUI]), or WWDC tags (like [WWDC21]).

Learn different ways to search and use the forums

See all WWDC21 tags

Posts

Sort by:
Post not yet marked as solved
7 Views

two critical iOS bugs not yet fixed after long wait!

Two of the iOS bugs affecting my work, have been reported multiple times on Feedback Assistant over last many months, yet they are not fixed yet. Anyone else too facing them? They are: Sending SMS Text message (Green Bubbles) on a dual sim iPhone FAILS upon using “Respond with Text” with an incoming phone call from a caller to whom SMS has not been sent earlier after a reset of iPhone settings.  Scheduled fetch and notifications not done by native iOS Mail App for favourite mailboxes on non Push supporting mail accounts (IMAP/ Yahoo/ Gmail etc accounts)- favourite mailboxes updating only upon manual fetch.
Asked
by uandme72.
Post not yet marked as solved
8 Views

Xcode plugin in swift

Hello, I wanna make my own version of the rainbow brackets extension for Xcode, but using swift. A good example of this extension would be Rainbow Brackets for Intellij. Also, if there is any good tutorial or course about this let me know.
Asked
by Denisu.
Post not yet marked as solved
8 Views

EXC_BAD_ACCESS when acess to property when object initialized by convenience init of superclass calling private init

I have some code here and when I call testFunc() it crashes on line value = NSObject() with error EXC_BAD_ACCESS (code=EXC_I386_GPFLT). I figured out, that removing private from class A init(_ object: Any?) fixes problem. Why does it happens? class A { var object: Any? convenience init() { self.init(nil) } private init(_ object: Any?) { self.object = object } } class B: A { var value: Any? func test() { value = NSObject() } } func testFunc() { let b = B() b.test() }
Asked
by Kigali.
Post not yet marked as solved
6 Views

App store server notification missing properties in sandbox

I'm trying to implement in app purchases and subscription management on the server depends on properties like a unique subscription_id and any changes to auto_renew_status with each notification. the docs say this information should be present in a notification body but when i get sandboxed response they are missing any potentially identifying top level properties (such as an auto_renew_adam_id if i understand that property correctly.) do i use the auto_renew_adam_id to identify a subscription? if so how do i go about testing it in the sandbox, or at all? https://developer.apple.com/documentation/appstoreservernotifications/responsebody
Asked
Post not yet marked as solved
6 Views

iPa file

how to open an .iPa file on mac os catalina?
Asked
Post not yet marked as solved
25 Views

Running Timer inside NetworkExtension

Currently I'm using this code for running scheduled tasks inside NetworkExtension: let timer = Timer(fireAt: nextRunTime, interval: 0, target: self, selector: #selector(timerFired), userInfo: nil, repeats: false) RunLoop.main.add(timer, forMode: RunLoop.Mode.common) It runs more or less ok, until it doesn't. If I'm connected to console app on mac and to debugger on xcode it seems to be running well. When I disconnect everything looks like after some time this stops working. Am I doing something wrong? Is there any better way to run code inside NetworkExtension at predefined time in the future?
Asked
Post not yet marked as solved
30 Views

PDFKit issue with PDFs created by CoralDRAW

We are using PDFKit framework to display PDF and add annotation on PDF files. Before rendering PDF for the display we are using PDFKit framework's write method to save the PDF file in documents directory. It supports most of the functionality required for our application but for few PDF files we are not able to recognize text on PDF. To those PDF files we are unable to search keyword. After lot of research we found out that the issue is occurring for PDF files which are created via CorelDRAW. We are requesting your assistance in this issue as lot of our users are creating PDFs via CoralDraw software. Please let me know in case of more clarification.
Asked
Post not yet marked as solved
13 Views

your computer was restarted because of a problem

panic(cpu 2 caller 0xffffff801ddfea25): userspace watchdog timeout: no successful checkins from com.apple.WindowServer in 120 seconds service: com.apple.logd, total successful checkins since wake (7590 seconds ago): 760, last successful checkin: 0 seconds ago service: com.apple.WindowServer, total successful checkins since wake (7590 seconds ago): 748, last successful checkin: 120 seconds ago Backtrace (CPU 2), Frame : Return Address 0xffffffa136a23670 : 0xffffff801aa8e04d 0xffffffa136a236c0 : 0xffffff801abd4e13 0xffffffa136a23700 : 0xffffff801abc540a 0xffffffa136a23750 : 0xffffff801aa32a2f 0xffffffa136a23770 : 0xffffff801aa8d86d 0xffffffa136a23890 : 0xffffff801aa8db63 0xffffffa136a23900 : 0xffffff801b29dc74 0xffffffa136a23970 : 0xffffff801ddfea25 0xffffffa136a23980 : 0xffffff801ddfe660 0xffffffa136a239a0 : 0xffffff801b21e4be 0xffffffa136a239f0 : 0xffffff801ddfda34 0xffffffa136a23b20 : 0xffffff801b22876b 0xffffffa136a23c80 : 0xffffff801ab80841 0xffffffa136a23d90 : 0xffffff801aa936cd 0xffffffa136a23e00 : 0xffffff801aa69cf5 0xffffffa136a23e60 : 0xffffff801aa81252 0xffffffa136a23ef0 : 0xffffff801aba970d 0xffffffa136a23fa0 : 0xffffff801aa33216 Kernel Extensions in backtrace: com.apple.driver.watchdog(1.0)[5E977058-687E-36A0-9AED-3BDE47B80C97]@0xffffff801ddfc000->0xffffff801ddfefff Process name corresponding to current thread: watchdogd Mac OS version: 20G80 Kernel version: Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 Kernel UUID: FECBF22B-FBBE-36DE-9664-F12A7DD41D3D KernelCache slide: 0x000000001a800000 KernelCache base: 0xffffff801aa00000 Kernel slide: 0x000000001a810000 Kernel text base: 0xffffff801aa10000 __HIB text base: 0xffffff801a900000 System model name: MacPro6,1 (Mac-F60DEB81FF30ACF6) System shutdown begun: NO Panic diags file available: YES (0x0) Hibernation exit count: 0 System uptime in nanoseconds: 8424789969923 Last Sleep: absolute base_tsc base_nano Uptime : 0x000007a98c9d1b2b Sleep : 0x000000c02741068f 0x000006c736597e75 0x0000000000000000 Wake : 0x000000c0419738a4 0x0000000033251750 0x000000c03f1d30ce last started kext at 322194202696: @filesystems.exfat 1.4 (addr 0xffffff7fb6299000, size 53248) last stopped kext at 8385671457485: >!AFIVRDriver 4.1.0 (addr 0xffffff7fb4051000, size 8192) loaded kexts: @filesystems.exfat 1.4 @filesystems.smbfs 3.6 @filesystems.afpfs 11.3 @nke.asp_tcp 8.2 !A!BMultitouch 99 AudioAUUC 1.70 AGPM 122.1 !APlatformEnabler 2.7.0d0 X86PlatformShim 1.0.0 @filesystems.autofs 3.0 @fileutil 20.036.15 !AUpstreamUserClient 3.6.8 !AMCCSControl 1.14 @kext.AMDFramebuffer 4.0.6 @kext.AMDRadeonX4000 4.0.6 @kext.AMDRadeonServiceManager 4.0.6 !AGraphicsDevicePolicy 6.3.5 @AGDCPluginDisplayMetrics 6.3.5 pmtelemetry 1 |IOUserEthernet 1.0.1 usb.!UUserHCI 1 !AHDA 283.15 |IO!BSerialManager 8.0.5d7 @Dont_Steal_Mac_OS_X 7.0.0 !AHV 1 !ADiskImages2 1 !AThunderboltIP 4.0.3 !AFWOHCI 5.7.4 !AMGPUPowerControl 6.3.5 eficheck 1 !A!IMCEReporter 115 !ALPC 3.1 !A!ISlowAdaptiveClocking 4.0.0 @kext.AMD7000!C 4.0.6 !UDisplays 380 |IO!BUSBDFU 8.0.5d7 |SCSITaskUserClient 436.140.1 !AFileSystemDriver 3.0.1 @filesystems.tmpfs 1 @filesystems.hfs.kext 556.100.11 @BootCache 40 @!AFSCompression.!AFSCompressionTypeZlib 1.0.0 @!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1 @filesystems.apfs 1677.141.1 |!ABCM5701Ethernet 11.0.0 AirPort.BrcmNIC 1400.1.1 !AAHCIPort 346.100.2 @private.KextAudit 1.0 !AACPIEC 6.1 !ARTC 2.0 !AACPIButtons 6.1 !AHPET 1.8 !ASMBIOS 2.1 !AAPIC 1.7 !A!ICPUPowerManagementClient 222.0.0 @!ASystemPolicy 2.0.0 @nke.applicationfirewall 311 |IOKitRegistryCompatibility 1 |EndpointSecurity 1 !A!ICPUPowerManagement 222.0.0 $SecureRemotePassword 1.0 !A!BHIDKeyboard 224 !AHIDKeyboard 224 IO!BHIDDriver 8.0.5d7 !AMultitouchDriver 4440.3 !AInputDeviceSupport 4400.35 @plugin.IOAVBDiscoveryPlugin 940.4 @kext.triggers 1.0 !ASMBus!C 1.0.18d1 @kext.AMDRadeonX4030HWLibs 1.0 |IOAccelerator!F2 442.9 @kext.AMDRadeonX4000HWServices 4.0.6 DspFuncLib 283.15 @kext.OSvKernDSPLib 529 |IOSerial!F 11 |IOAVB!F 940.4 |IOEthernetAVB!C 1.1.0 !AHDA!C 283.15 |IOHDA!F 283.15 @plugin.IOgPTPPlugin 985.2 |IOFireWire!F 4.8.3 @!AGPUWrangler 6.3.5 !AGraphicsControl 6.3.5 !ABacklightExpert 1.1.0 |IONDRVSupport 585.1 !UAudio 405.39 |IOAudio!F 300.6.1 @vecLib.kext 1.2.0 X86PlatformPlugin 1.0.0 IOPlatformPlugin!F 6.0.0d8 |IOSlowAdaptiveClocking!F 1.0.0 @kext.AMDSupport 4.0.6 @!AGraphicsDeviceControl 6.3.5 |IOGraphics!F 585.1 usb.IOUSBHostHIDDevice 1.2 !UComposite 900.4.2 |Broadcom!BHost!CUSBTransport 8.0.5d7 |IO!BHost!CUSBTransport 8.0.5d7 |IO!BHost!CTransport 8.0.5d7 usb.cdc 5.0.0 usb.networking 5.0.0 usb.!UHostCompositeDevice 1.2 !AThunderboltDPOutAdapter 8.1.4 !AThunderboltPCIUpAdapter 4.1.1 usb.!UHub 1.2 !AThunderboltDPInAdapter 8.1.4 !AThunderboltDPAdapter!F 8.1.4 !AThunderboltPCIDownAdapter 4.1.1 !ABSDKextStarter 3 |IOSurface 290.8.1 @filesystems.hfs.encodings.kext 1 !AXsanScheme 3 !AThunderboltNHI 7.2.8 |IOThunderbolt!F 9.3.2 |IOAHCIBlock!S 332 usb.!UXHCIPCI 1.2 usb.!UXHCI 1.2 |IO80211!F 1200.12.2b1 |IOSkywalk!F 1 mDNSOffloadUserClient 1.0.1b8 corecapture 1.0.4 |IOAHCI!F 294.100.1 usb.!UEHCIPCI 1.2 usb.!UEHCI 1.2 usb.!UHostPacketFilter 1.0 |IOUSB!F 900.4.2 !AEFINVRAM 2.1 !AEFIRuntime 2.1 |IOSMBus!F 1.1 |IOHID!F 2.0.0 $!AImage4 3.0.0 |IOTimeSync!F 985.2 |IONetworking!F 3.4 DiskImages 493.0.0 |IO!B!F 8.0.5d7 |IOReport!F 47 |IO!BPacketLogger 8.0.5d7 $quarantine 4 $sandbox 300.0 @kext.!AMatch 1.0.0d1 |CoreAnalytics!F 1 !ASSE 1.0 !AKeyStore 2 !UTDM 511.141.1 |IOUSBMass!SDriver 184.140.2 |IOSCSIBlockCommandsDevice 436.140.1 |IO!S!F 2.1 |IOSCSIArchitectureModel!F 436.140.1 !AMobileFileIntegrity 1.0.5 @kext.CoreTrust 1 !AFDEKeyStore 28.30 !AEffaceable!S 1.0 !ACredentialManager 1.0 KernelRelayHost 1 |IOUSBHost!F 1.2 !UHostMergeProperties 1.2 usb.!UCommon 1.0 !ABusPower!C 1.0 !ASEPManager 1.0.1 IOSlaveProcessor 1 !AACPIPlatform 6.1 !ASMC 3.1.9 |IOPCI!F 2.9 |IOACPI!F 1.4 watchdog 1 @kec.pthread 1 @kec.corecrypto 11.1 @kec.Libm 1
Asked
Post not yet marked as solved
11 Views

Vision's pose model architecture

Could I please ask what is (at least plainly) the deep learning architecture of the Apple's custom pose models available through Vision (for example with the VNDetectHumanBodyPoseRequest)? Or whether it is based on some publicly used architecture (such as ResNet) only with modifications or custom Apple dataset? I was not able to find this information anywhere in the Apple documentation and it would be highly beneficial to know this, as we are using this data in a research about which we want to publish a paper. Thanks beforehand!
Asked
Post not yet marked as solved
22 Views

Swift.DecodingError.dataCorrupted and app crash with "The given data was not valid JSON.", underlyingError: Optional(Error Code=3840 "No value"

here is my code struct ServerMessage: Codable { let error, email, firstname, lastname: String let Id: Int } out of 5 variables returned from api, 4 are string and 1 is int, class HttpAuth: ObservableObject { var didChange = PassthroughSubject<HttpAuth, Never>() var authenticated = false { didSet { didChange.send(self) } } func checkDetails(useremail:String, userpass: String) { guard let url: URL = URL(string: "http://www.mytestdomain.com/webapi/Users.php") else { print("invalid login URL") return } var urlRequest: URLRequest = URLRequest(url: url) urlRequest.httpMethod = "POST" urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") do { let params = ["action": "login", "UserEmail": useremail, "UserPass": userpass] urlRequest.httpBody = try JSONSerialization.data(withJSONObject: params, options: .init()) URLSession.shared.dataTask(with: urlRequest) { (data, resp, err) in guard let data = data else { return } let finalData = try! JSONDecoder().decode([ServerMessage].self, from: data) print(finalData) if let err = err { print("Failed to login: ", err) } print("Login Sucess") }.resume() } catch { print("Failed to get data", error) } } } and this is the output of my php based web api {"error":"false","Id":1,"email":"emailidatmaildotcom","firstname":"somename","lastname":"lastname"} i double checked the api using postman. i am getting this error 2021-07-29 19:44:00.378908+0530 kapp[4536:146582] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed app/login.swift:79: Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.}))) 2021-07-29 19:44:02.613900+0530 kapp[4536:145289] kapp/login.swift:79: Fatal error: 'try!' expression unexpectedly raised an error: Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.}))) (lldb) edit: once the app is crashed, decode is showing this error also Thread 12: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0) the api is written using php, any help is appreciated, thanks.
Asked
Post not yet marked as solved
10 Views

Enable Message options Callkit

How to enable the message options on Callkit? Currently, I only see settings for Remind me. Thank you
Asked
Post not yet marked as solved
11 Views

xcodebuild test-without-building cannot find baseline file

So I am trying to use test without building for my perf test. I use below command to build for testing: xcodebuild build-for-testing -destination 'platform=iOS Simulator,name=iPhone 12 Pro' -project MeasuringInTests.xcodeproj -scheme MeasuringInTests  and it succeeds now start testing: xcodebuild test-without-building -destination "platform=iOS Simulator,name=iPhone 12 Pro" -xctestrun /Users/lx/Library/Developer/Xcode/DerivedData/MeasuringInTests-adylpmhgxgvhbmfsacjgebueadzk/Build/Products/MeasuringInTests_iphonesimulator14.5-x86_64.xctestrun however for every test case it throws: Test Suite 'MeasuringInTestsUITests' started at 2021-08-04 19:10:14.708 Test Case '-[MeasuringInTestsUITests.MeasuringInTestsUITests testCalculateWithClockMetric]' started.   t =   0.00s Start Test at 2021-08-04 19:10:14.709 Error while reading test baseline file: "The file “9A6EEBD5-A75D-4D0E-9ED2-2ACCBC1BEE47.plist” couldn’t be opened because there is no such file." at path: "/Users/lx/Downloads/MeasuringInTests-master/__TESTHOST__/PlugIns/MeasuringInTestsUITests.xctest/xcbaselines/9A6EEBD5-A75D-4D0E-9ED2-2ACCBC1BEE47.plist"2021-08-04 19:10:15.158590+0800 MeasuringInTestsUITests-Runner[56077:5970055] Running tests... Restarting after unexpected exit, crash, or test timeout in MeasuringInTestsUITests.testCalculateWithClockMetric(); summary will include totals from previous launches. I have no idea why the path became "/Users/lx/Downloads/MeasuringInTests-master/__TESTHOST__/PlugIns/MeasuringInTestsUITests.xctest nor do I know how to fix this. Are there any variables I should specify to generate the baseline file for xctestrun files? because in the xctestrun file, it shows: "MeasuringInTestsUITests": { "BaselinePath": "__TESTBUNDLE__/xcbaselines/9A6EEBD5-A75D-4D0E-9ED2-2ACCBC1BEE47.plist", "BlueprintName": "MeasuringInTestsUITests", Please help how to fix this. directly using xcodebuild test seems totally fine, but I do want to take advantage of test without building.
Asked
by Wingzero.
Post not yet marked as solved
19 Views

What kind of image preprocessing may improve Vision accuracy?

Hello. We are doing barcodes and article IDs recognition using Vision - specifically VNDetectBarcodesRequest and VNRecognizeTextRequest. Previously we were doing our own preprocessing of images like cropping the region of interest and applying monochrome filter. However, I noticed that it actually reduces the accuracy in some cases and in WWDC session it was said that Vision also does some preprocessing. Should we do preprocessing at all in this case? What kind of custom image preprocessing might be useful for this task? Are there any tips how to increase the accuracy of Barcode/Text recognition?
Asked
by AEugene.