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
6 Views

Is there a problem with StoreKit on iOS15?

My app uses StoreKit to implement individual purchases, subscription purchases, and more. It worked fine up to iOS14. However, on rare occasions, it doesn't seem to work properly on devices that have been updated to iOS 15. I thought it was an app issue. However, in this state, this user can't enter the account screen of the App Store, and the YouTube application does not start. I suspect there is a problem with StoreKit as this user will be temporarily fixed when the device is restarted. My development environment is React Native. I also reported to my StoreKit related library react-native-iap. There have been many reports of the same situation when using the SandBox. Of course, there is a high possibility that this library is defective, but what does it mean that a problem with one app affects the entire device?
Asked
Post not yet marked as solved
8 Views

Apple Xcode

Hi, Apple Developer newbie here. Couple quick questions about Apple Xcode (currently running Version 10.1 (10B61), the latest version it seems I can install under Version 10.13.6 “High Sierra,” the last version of Apple macOS that my computer apparently supports): 0. How do you toggle between “Insert” and “Overwrite” mode in the Apple Xcode source editor; know how to do this in Microsoft Visual Studio Code but can’t find any documentation on how to do this in Xcode; and How do you pipe selected text to an external filter; for example in vi you can type !}f to pipe everything from the current cursor to the end of the paragraph through an external program, e. g., “f” in the example above (in my case, a simple C filter that reformats and/or reflows text, whether into a canonical source format or to reflow text into 80-column paragraphs), replacing the original text with the output of that filter? ’preciate it, Austin
Asked
by powerpcg5.
Post not yet marked as solved
4 Views

How can I change the bounce of SKSpriteNode dynamically?

I have a very simple app. All SKSpriteNodes, myBall, myBlue, and myRed. Only myBall moves, affected by gravity, and bounces off of different objects (myRed and myBlue). What I can't figure out is how to make myBall bounce harder or softer depending on which body it hits? I hav been playing with the density of all the objects, but it doesn't seem to make any difference? Is there some property I am unaware of? Or are there other methods?
Asked
by SergioDCQ.
Post not yet marked as solved
7 Views

TableViewCell block print different number

I have a block in cell and it will print number when I touch. when I scroll tableView and touch block, it print different number. if you touch cell and make it call didSelectIndexRow, it print correct number every time. It happened at iOS15/Xcode13 and It's good at iOS14/Xcode12.5 following is file. image video Project Thanks a lot. p.s I get error message when i upload image here 😢.
Asked
by charlie01.
Post not yet marked as solved
8 Views

camera photo to binary

how can I to convert a photo taken from my camera to binary using swift? now I transform image to UIImage and after I try to do it using pngData() or jpegData(compressionQuality: 1.0) It's works well with a png image or jpeg image stoked in my gallery but if I try with a camera photo it doesn't work, the result is a black image  let uiImage: UIImage = image.asUIImage()      let imageData: Data = uiImage.jpegData(compressionQuality: 1.0) ?? Data() //uiImage.pngData() ?? Data()
Asked
by LuisHHMM.
Post not yet marked as solved
9 Views

Apple Developer's ID Sign In

Hello, my name is Dennis, and my Apple Developer's ID Sign In was just working fine a day ago while I was running iOS 14.8, now that I updated to iOS 15, it no longer works. I was using it to play M.AM.E. on my iPhone 12 Pro Max. Now since my ID is all of a sudden not working can I get a refund because it isn't working? I really hate going through these changes for the worst with Apple. I hate iOS 15, and they should have left it alone, I should have left it alone!
Asked
Post not yet marked as solved
27 Views

Video Materials After Image Detection Not Working After iOS 15.0 Update

About a month ago I made a demo app that would detect an image and create a floating AR tv screen above the image and play a local video. After the iOS 15 update, the video screen will be created and load the wanted video materials but the screen appears to be glitched. To add more detail to my description of glitched, the video will only appear for tenths of a second and flash between this and not appearing at all. This demo worked perfectly until the iOS 15 update and I wanted to know if anyone else has also experienced this issue or can recreate it. I suspect the culprit behind my issue is the ARSessionDelegate's method named func session(_ session: ARSession, didAdd anchors: [ARAnchor]) because I tested a seperate demo that creates video materials without the use/inside this method and it works correctly. I am hoping that the issue has nothing to do with code, instead it is related to Xcode build settings and configurations but I tested this by updating the deployment to iOS 15.0 as well as creating/duplicating a brand new project all within Xcode 13 and still was running into my issue. I understand that there has been some changes to ARKit and RealityKit since WWDC21 but has the ARSessionDelegate protocol been depreciated? Is there a newer/better way to know when an ARAnchor has been added to a AR scene? Enclosed is a GitHub gist that has the code to my demo app. I am asking the Apple AR dev community and/or Apple ARKit team to guide me through this issue. Any feedback or confirmation would be much obliged as I would like to continue to build on my knowledge of ARKit but found this issue to be a blocker. enclosed: https://gist.github.com/Innovoeb/1711719b94ba2df17b0558475ed6203b
Asked
by Innovoeb.
Post not yet marked as solved
20 Views

iOS 15 hardware keyboard causing the iOS keyboard disappearing or not showing

Our app recently got rejected couple times by an issue that the keyboard is not appeared (or is disappeared after 1 second) on log in page when the reviewer tried to login by using their iOS 15.0.1 device (iPhone or iPad). We can't reproduce from our devices until we connect a Magic Keyboard to our device and found out the iOS 15 has been changed for the behaviour of hardware keyboard: When running the app in iOS 15 and iOS 13 in Simulator, if the "Connect Hardware Keyboard" is on, typing in hardware keyboard results differently for iOS 15 and iOS 13, iOS 15 keyboard is disappeared from the Simulator. I connect my Magic Keyboard to my iPhone (iOS 15.0.1) and when I tap on a text field (e.g. in Message app) - there is no iOS keyboard appears on the screen. I also sometimes have luck that the iOS keyboard is appeared when I tap on Message app's text field, if the iPhone is awake from the locked screen. Then I can use the iOS keyboard for inputting, but once I start typing in the Magic Keyboard, the iOS keyboard is disappeared at once. It seems there is a bug for iOS 15 when a hardware keyboard is connected to the iPhone. iOS Keyboard showing (for the first time only, or awake from locked screen): iOS keyboard disappeared when typing from the hardware keyboard: iOS 13 has no such issue:
Asked
by bxu.
Post not yet marked as solved
21 Views

iOS 15 SwiftUI App crashes SOMETIMES on SOME devices

Not sure how to accurately describe this so I apologize for the vague-ness, but in a SwiftUI app built on iOS 15, when users select a NavigationLink from a list, the app freezes. BUT, this only happens on some iPhone 12 and 13's. This does not happen on any iPhone I have personally tested (11, 12, 12 pro max, etc) but users have sent me video of it happening. In addition to this, the view that this nav link opens, DOES work for these users when it goes through another level of navigation. So for this user: MainView->ThisView : this action freezes MainView->AnotherView->ThisView : This action works Whereas 90% of other users, the nav link works fine and as expected. One user submitted a crash log from TestFlight which shows the following information, but I am not sure what this is indicating: #0 (null) in specialized _ArrayBuffer._consumeAndCreateNew+ 507128 (bufferIsUnique:minimumCapacity:growForAppend:) () #1 (null) in DisplayList.ViewUpdater.Model.State.addClip+ 663792 (_:style:) () #2 (null) in static DisplayList.ViewUpdater.Model.merge+ 1281064 (item:into:) () #3 (null) in DisplayList.ViewUpdater.updateInheritedView+ 421056 (container:from:parentState:) () #4 (null) in DisplayList.ViewUpdater.update+ 196956 (container:from:parentState:) () #5 (null) in DisplayList.ViewUpdater.updateInheritedView+ 421432 (container:from:parentState:) () #6 (null) in DisplayList.ViewUpdater.update+ 196956 (container:from:parentState:) () #7 (null) in closure #1 in DisplayList.ViewUpdater.render+ 149008 (rootView:from:time:version:maxVersion:contentsScale:) () #8 (null) in DisplayList.ViewUpdater.render+ 67780 (rootView:from:time:version:maxVersion:contentsScale:) () #9 (null) in DisplayList.ViewRenderer.render+ 779076 (rootView:from:time:nextTime:version:maxVersion:contentsScale:) () #10 (null) in closure #1 in UIHostingView.renderDisplayList+ 967228 (:asynchronously:time:nextTime:version:maxVersion:) () #11 (null) in UIHostingView.renderDisplayList+ 408916 (:asynchronously:time:nextTime:version:maxVersion:) () #12 (null) in closure #1 in ViewRendererHost.render+ 94160 (interval:updateDisplayList:) () #13 (null) in ViewRendererHost.render+ 905080 (interval:updateDisplayList:) () #14 (null) in _UIHostingView.layoutSubviews+ 167448 () () #15 (null) in @objc _UIHostingView.layoutSubviews+ 183076 () () #16 (null) in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] () #17 (null) in CA::Layer::layout_if_needed(CA::Transaction*) () #18 (null) in CA::Layer::layout_and_display_if_needed(CA::Transaction*) () #19 (null) in CA::Context::commit_transaction(CA::Transaction*, double, double*) () #20 (null) in CA::Transaction::commit() () #21 (null) in _UIApplicationFlushCATransaction () #22 (null) in _UIUpdateSequenceRun () #23 (null) in schedulerStepScheduledMainSection () #24 (null) in runloopSourceCallback () #25 (null) in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION () #26 (null) in __CFRunLoopDoSource0 () #27 (null) in __CFRunLoopDoSources0 () #28 (null) in __CFRunLoopRun () #29 (null) in CFRunLoopRunSpecific () #30 (null) in GSEventRunModal () #31 (null) in -[UIApplication _run] () #32 (null) in UIApplicationMain () #33 (null) in 0x100b6c000 () #34 (null) in start () Can anyone point me in the right direction to start trying to figure out what is causing this issue? Any insight is appreciated.
Asked
Post not yet marked as solved
18 Views

Custom File Type

I created a custom file type for my app as a package. However when I run the app and try to open a file it does not recognize it as the custom file type, but instead as a regular folder. I haven't changed my settings since I first setup the custom type, and only some of these files in Finder are showing properly. Do I need to do something in Xcode to change the rest of the files in Finder?
Asked
by yyjhuj.
Post not yet marked as solved
21 Views

VNRecognizeTextRequest doesn't recognize text in iOS 15

I'm using VNRecognizeTextRequest with: request.recognitionLevel = .accurate request.usesLanguageCorrection = false request.recognitionLanguages = ["en-US", "de-DE"] Basically code is taken from https://developer.apple.com/documentation/vision/reading_phone_numbers_in_real_time But when performs it by VNImageRequestHandler. I'm getting the following warning: Could not determine an appropriate width index for aspect ratio 0.0062 Could not determine an appropriate width index for aspect ratio 0.0078 Could not determine an appropriate width index for aspect ratio 0.0089 ... I tried to use fast for recognitionLevel and it helped but results are not that good as in accurate level. Can you suggest how to fix the problem accurate?
Asked
by andros.
Post not yet marked as solved
16 Views

unable to access Webview for an app on ios15 using bigsur on mac

i have webivews in my IOS application. everytime i am trying to inspect i only see safari view in the develop tool for Iphone device. it does not shows me anything for the application webviews :( can someone please help me
Asked
Post not yet marked as solved
17 Views

No mobile network after updating 15.0.1 iPhone x.

My Iphone X signals gone while using, tried reinstalling the sim, turned off the phone 3-4 times, did factory reset, network settings reset, everything but still no luck 😞 Any idea? It’s after the 15.0.1 update maybe?
Asked
Post marked as solved
24 Views

latest Monterery beta releases not found

Software Update finds no new updates. I re-installed the profile with Developer Beta Access Utility, which causes Software Update to launch afresh. It seeks, shows "Finding Update" and never finds one, but doesn't time out either. I have 21A5522h installed. This hasn't worked for the last few beta releases.
Asked
by Cfritze.
Post not yet marked as solved
22 Views

UIDocumentPickerViewController - Open folder from 3rd party file provider

Hi, I am trying to use UIDocumentPickerViewController to select a folder in a 3rd party file provider as a "default save location". The goal would be to have that folder be the automatic location to save to whenever the app needs to write a file out to disk, instead of the app's Documents directory. When I present the UIDocumentPickerViewController for selecting folders, however, every 3rd party file provider is grayed out. Only "On this Device" and "iCloud Drive" are available. let controller = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) controller.delegate = self controller.allowsMultipleSelection = false present(controller, animated: true, completion: nil) The documentation states: "With iOS 13, users can select a directory from any of the available file providers using a UIDocumentPickerViewController." It seems strange that this is specifically called out in the docs, but it doesn't work at all. One hypothesis that I have is that there is some confusion in the system between kUTTypeFolder and kUTTypeDirectory which is causing this issue. But it's weird that this would be an issue from iOS 13 through iOS 15. As a workaround, I also tried moving/copying a temporary directory with UIDocumentPickerViewController to the 3rd party provider, and using the resulting security-scoped URL to create new files. However, it seems that it doesn't grant proper permissions because whenever I try to create files in that folder, it throws an error claiming the file doesn't exist (duh, that's what I'm trying to do.) let temporary = try! TemporaryFile(creatingTempDirectoryForFilename: "placeholder") FileManager.default.createFile(atPath: temporary.fileURL.path, contents: nil, attributes: nil) let controller = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) controller.delegate = self controller.allowsMultipleSelection = false present(controller, animated: true, completion: nil) func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { let folderURL = urls.first! let randomNumber = String(format: "%X", arc4random()) guard folderURL.startAccessingSecurityScopedResource() else { Swift.debugPrint("Cannot access security-scoped URL: \(folderURL)") return } defer { folderURL.stopAccessingSecurityScopedResource() } let fileURL = folderURL.appendingPathComponent(randomNumber).appendingPathExtension("txt") var error: NSError? NSFileCoordinator().coordinate(writingItemAt: fileURL, options: .forReplacing, error: &error) { fileURL in let data = Data(randomNumber.utf8) do { try data.write(to: fileURL, options: []) } catch { print("error writing file:") print(error) } } } error writing file: Error Domain=NSCocoaErrorDomain Code=4 "The file “3A7F4A2.txt” doesn’t exist." UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/D9D4024B-AD43-4B57-920B-D8E2B5ED7645/File Provider Storage/non-file/d_LOCAL-0A6C7195-23D8-43AE-9CBC-B84F063E2B44/3A7F4A2.txt, NSUnderlyingError=0x2817ea100 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} Does anyone have an idea for a workaround for this issue? Are there any known 3rd party file providers which are known to work? Is there any reason this would be disallowed? Finally, does anyone have an idea how I could implement the intended functionality in a way that I haven't thought of, yet?
Asked
by jadardev.