iOS is the operating system for iPhone.

Posts under iOS tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Crash after splash screen - latest gen ipads only
Hi, I've got a well established game in gamemaker, which seems to crash on latest gen ipads. In particular have been able to reproduce in ipad 11-inch M2 in the emulator. Game launches, shows the splash screen, and seems to crash as it's leaving it, but before launching the game itself, as such the log results are rather limited. I'm attaching what I can see from the crash, and hope anyone has a suggestion in what might be different in this model of the ipad to warrant this sort of crash. Any leads would be welcome. Thank you in advance.
1
0
132
14h
How to distribute a DriverKit extension to third parties developing on iOS
Hello, We're developing a framework that needs to talk to a camera on iOS. We've written a Driverkit Extension to enable this but we're having trouble working out how to distribute this to third parties. We have to specify the application's bundle id in the driverkit's bundle ID. But as far as I can tell that means if there are multiple consumers, they each need their own specially built driverkit extension. For MacOS, we can see an entitlement that allow any 'user client' to connect to our driverkit extension. But from what I can tell, that doesn't seem to be the same for iOS. Am I missing something? Or is it expected that we should have to build a new driverkit extension with a different bundle ID for every app that every third party wants to develop? Let me know if I'm missing too much context, thanks in advance!
2
0
176
18h
Network Extension: broken behavior on iOS 16.4+ when setting NEVPNProtocol's `includeAllNetworks` flag.
I am seeing an interesting behavior on iOS 16.4+ when I set NEVPNProtocol includeAllNetworks flag to TRUE as part of my tunnels's saved preferences. After my packet tunnel provider starts up and goes through the usual setup of adding routes, where let's say we just just add NEIPv4Route.default() to route everything and eventually setting via: setTunnelNetworkSettings. Any subsequent calls to cancelTunnelWithError will cause the phone to get into a state where the tunnel provider goes away but it appears that my routes did not properly clean up, essentially causing a device to get into a state where all network traffic is now dead. The only way to recover is to go into OS Settings -> VPN and change selected profile to some other one, or just remove ours and go through installation again. It appears to only be happening on iOS 16.4+ devices, any previous versions clean up just fine. Curious if anyone has seen such behavior? Thanks in advance.
4
0
386
1d
iOS VPN Issue - Internet Unavailability Post VPN Disconnection with Full Tunnel configuration
Experiencing an internet connectivity issue on iPhone device with one of iOS VPN configuration in PacketTunnelProvider. We have set up a full tunnel route configuration as follows: _pcktTunProvider.protocolConfiguration.includeAllNetworks = YES; _pcktTunProvider.protocolConfiguration.excludeLocalNetworks = NO; _pcktTunProvider.protocolConfiguration.enforceRoutes = NO; With these settings, the VPN successfully establishes a connection, and all traffic is routed through the tunnel as expected. Issue we are facing: However, we encounter a problem when we attempt to disconnect the VPN. When we call the following method from PacketTunnel network extension: (void)cancelTunnelWithError:(nullable NSError *)error The VPN disconnects, but the device loses all internet connectivity and is unable to access any resources. What we have tried: We have also tried using the following method with the same result:       - (void)stopTunnelWithReason:(NEProviderStopReason)reason completionHandler:(void (^)(void))completionHandler Interestingly, when we call the following method from the app side. The VPN disconnects and the device retains its internet connectivity. [enabledConfig.connection stopVPNTunnel]; But for our use case we cant call stopVPNtunnel from App if App is not running so looking for a solution that could clear the tunnel from NE as cancelTunnelWithError Api causes internet blocker issue. One more similar ticket here: https://forums.developer.apple.com/forums/thread/730689
2
0
86
1d
Start live activity with push notification problem
Hey there, i implemented live activity in my app and iam trying to start the live activity from push notification, updates works fine even when the app is in background but starting the activity creating issue mostly on background and kill mode when i check the delivery of live activity on cloudkit console it says stored for device power considerations. anyone having the same issue ?
0
0
75
1d
Detecting sleep/wake event in IOS
In IOS, when the device is kept idle for some time, the screen turns off and the device enters sleep mode. It also enters sleep mode when we press the power button to turn the screen off. In my application, I wanted to detect If the device has entered/exited the sleep mode. I have followed the below links but some of these ways like observing 'Darwin notifications' is no longer allowed by apple. Other ways consider the device being locked as sleep mode, which is not precisely correct. Is there a way to correctly determine this? Please share the apple documentation links if this is possible. https://stackoverflow.com/questions/14191980/detect-screen-on-off-from-ios-service/14208787#14208787 https://nemecek.be/blog/104/checking-if-device-is-locked-or-sleeping-in-ios
2
1
336
2d
ios 17.5.1 keyboard glitch on some batches on iphone 14+models(not all)
We are using Material Textfield iOS component (as directed by our client), https://github.com/material-components/material-components-ios/blob/develop/components/TextControls/README.md , after ios 17.5.1 update, for all the material textfield on some iphone 14+ models there is a keyboard appearance issue, the keyboard starts to appear but dismisses immediately on tap of any textfeild,i.e material textfield component, apple's uitextfield works properly, we have an iphone 14+ with ios 17.5.1, for us it works without any issues, our app was uploaded using xcode 14.2, not sure how to fix this issue as we are not able to reproduce it, couple of users have reported this issue, it however works on all other iphone models!!! Any help would be greatly appreciated , i understand this is a third party SDK, but how to simulate this bug, if it is happening only on some devices and on the same device models we have, are working.
0
0
153
3d
Bug in .onmove for SwiftData models
I modified the default Items example from xcode to include two models, a view with a query and a detail view. On this detail view I cannot properly move all items, only the top two, please see the attached video. Especially strange is that some dragging does work and some does not. It changes with the number of sub-items on a todo. The models are SwiftData and it is have a one-to-many relationship. On the many relationship the problem exists. How should the code be adjusted to make sure all items are draggable? https://imgur.com/a/n1y7iXX Below is all code necessary for the minimal example. I target iOS 17.5 and this shows on both preview, simulator and my iPhone. Models @Model final class ToDo { var timestamp: Date var items: [Item] init(timestamp: Date) { self.timestamp = timestamp self.items = [] } } @Model final class Item { var timestamp: Date var done: Bool init(timestamp: Date, done: Bool) { self.timestamp = timestamp self.done = done } } ItemListView (Here is the problem!) struct ItemListView: View { @Bindable var todo: ToDo var body: some View { List { ForEach($todo.items) { $item in Text(item.timestamp.description) } .onMove { indexSet, offset in todo.items.move(fromOffsets: indexSet, toOffset: offset) } } } } ContentView struct ContentView: View { @Environment(\.modelContext) private var modelContext @Query var items: [ToDo] var body: some View { NavigationSplitView { List { ForEach(items) { item in NavigationLink { ItemListView(todo: item) } label: { Text(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard)) } } .onDelete(perform: deleteItems) } .toolbar { ToolbarItem(placement: .navigationBarTrailing) { EditButton() } ToolbarItem { Button(action: addItem) { Label("Add Item", systemImage: "plus") } } } } detail: { Text("Select an item") } } private func addItem() { withAnimation { let newItem = ToDo(timestamp: Date()) modelContext.insert(newItem) } } private func deleteItems(offsets: IndexSet) { withAnimation { for index in offsets { modelContext.delete(items[index]) } } } } APP @main struct ListProjectApp: App { var sharedModelContainer: ModelContainer = { let schema = Schema([ ToDo.self, ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) do { return try ModelContainer(for: schema, configurations: [modelConfiguration]) } catch { fatalError("Could not create ModelContainer: \(error)") } }() var body: some Scene { WindowGroup { ContentView() } .modelContainer(ToDoContainer.create()) } } actor ToDoContainer { @MainActor static func create() -> ModelContainer { let schema = Schema([ ToDo.self, Item.self ]) let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) let container = try! ModelContainer(for: schema, configurations: [modelConfiguration]) let todo = ToDo(timestamp: Date()) container.mainContext.insert(todo) let item1 = Item(timestamp: Date(), done: false) let item2 = Item(timestamp: Date(), done: false) let item3 = Item(timestamp: Date(), done: false) todo.items.append(item1) todo.items.append(item2) todo.items.append(item3) return container } }
2
0
181
3d
Xcode - Verify App button is buggy. Nothing happens when I tap it and app says it's not verified.
I'm new to SwiftUI and Xcode. I built and installed an app to test on my iPhone 15 Pro. On the Apple Development screen for my profile, I tapped Verify App and a dialog pops up with a Cancel and Verify button. It also tells me my internet connection will be used to do the verification. After tapping the Verify button "Apple Development" on the top of the screen quickly flashes one time and the app is still in the Not Verified state. No error message is ever displayed. It looks like I came across a bug in Apples verification process. Please show me a detailed step by step work-around to this bug. I'm using Xcode 15.4 Thanks in advance.
1
0
121
4d
Are suggested Play Media Intents no longer shown on lock screen?
Play media intents suggested via INUpcomingMediaManager.setSuggestedMediaIntents(_:) have been shown on the iOS lock screen in past iOS versions. In iOS 16/17 play media intents seem to be only shown within the Siri suggestions in the spotlight overlay and in the Siri suggestion widget. When the intents were shown on the lock screen, it was possible to open a preview via long press. Similar to notification previews. Preview support could be implemented with an Intents UI extension. Is there still any place in current iOS versions where play media intents are surfaced and a preview can be opened? In the spotlight overlay a long press has no effect.
0
0
89
4d
iOS 17 apps still require 5.5" iPhones screenshots?
I find odd that the App Store Connect still requires 5.5" iPhone screenshots of the iPhone 8 Plus, given that this specific phone is no longer supported by the latest release: iOS 17. I am well aware that the iPhone SE still has a similar screen ratio, and that it is still being supported by iOS 17, but it doesn't have the same pixel requirements (1242 x 2208), which means that in order for my app to be even reviewed (which is an iOS 17+ exclusive), I'm gonna have to create images that will then be upscaled to the right dimensions. Am I missing something here, or is it Apple who missed this detail?
30
21
7.8k
5d
Issue Running iOS 17.4 Simulator in Xcode with Flutter always say to download 17.5
Issue Running iOS 17.4 Simulator in Xcode with Flutter Hello everyone, I'm currently facing an issue with running my Flutter app on an iOS 17.4 simulator. Even though I have iOS 17.4 installed, Xcode and Flutter are insisting that I need to download and use iOS 17.5, which I do not want to do due to specific project requirements. The Problem When I attempt to run my app using the iOS 17.4 simulator, I receive the following error: Failed to build iOS app Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier: { id:30CEF98C-F08B-4CC9-8662-6A73B903E922 } Ineligible destinations for the "Runner" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.5 is not installed. To use with Xcode, first download and install the platform } Additionally, Xcode keeps prompting me to download iOS 17.5. However, when I attempt to download it, it consumes a lot of data and eventually fails with the message: iOS 17.5 Simulator - Failed - Registering simulator runtime with CoreSimulator failed to download Steps I've Taken but issue not solved so hey there please help me Verified Installed Runtimes in Xcode: Opened Xcode and navigated to Xcode > Settings > Platforms. Confirmed that iOS 17.4 is listed and installed. Checked and Updated Podfile: Edited ios/Podfile to set the platform to iOS 17.4: platform :ios, '17.4' Reinstalled pods: cd ios pod install cd .. ``` Cleaned Flutter and iOS Build Artifacts: > flutter clean 4. **Opened the iOS Project in Xcode:** - Ensured the deployment target is set to 17.4 for all configurations. - Selected the iPhone 15 Pro (iOS 17.4) simulator from the device menu. 5. **Built Directly in Xcode:** - Built the project by selecting `Product` > `Build` from the Xcode menu and addressed any errors. 6. **Reset Simulators:** - Deleted all simulators and recreated the iPhone 15 Pro with iOS 17.4: ```sh xcrun simctl delete all xcrun simctl create "iPhone 15 Pro" com.apple.CoreSimulator.SimDeviceType.iPhone-15-Pro com.apple.CoreSimulator.SimRuntime.iOS-17-4 ``` 7. **Verified Available Devices and Ran Again:** - Listed available devices: ```sh flutter devices ``` - Ran the app specifying the correct device ID: ```sh flutter run -d 30CEF98C-F08B-4CC9-8662-6A73B903E922 ``` 8. **Updated Flutter and Xcode:** - Ensured both Flutter SDK and Xcode are updated to their latest versions: ```sh flutter upgrade ``` 9. **Ran Flutter Doctor:** - Diagnosed any underlying issues: ```sh flutter doctor ``` #### Request for Help Despite these efforts, I am still unable to run my Flutter app on the iOS 17.4 simulator. Xcode continues to prompt for iOS 17.5, and the download consistently fails, consuming significant data. I am looking for a solution that allows me to use the iOS 17.4 simulator without having to upgrade to iOS 17.5. If anyone has encountered this issue or has any suggestions on how to resolve it, your help would be greatly appreciated! i am getting this in terminal, flutter run Launching lib/main.dart on iPhone 15 Pro in debug mode... Updating project for Xcode compatibility. Upgrading project.pbxproj Upgrading Runner.xcscheme Running pod install... 1,064ms Running Xcode build... Xcode build done. 1.9s Failed to build iOS app Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier: { id:FBAFE907-664B-4D4F-833F-B9E58B0B944A } Ineligible destinations for the "Runner" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.5 is not installed. To use with Xcode, first download and install the platform } ════════════════════════════════════════════════════════════════════════════════ iOS 17.5 is not installed. To download and install the platform, open Xcode, select Xcode > Settings > Platforms, and click the GET button for the required platform. For more information, please visit: https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes ════════════════════════════════════════════════════════════════════════════════ Could not build the application for the simulator. Error launching application on iPhone 15 Pro.
1
0
330
5d
visionOS and iOS archive builds
When I do an archive build of my app against visionOS, the archive listing in the Organizer show the archive entry as iOS. So I have one archive build for iOS with a certain build number and another archive build for visionOS with another build number (incremented by 1) They are both listed in The Organizer but they both have iOS info. I’ve submitted them both separately to TestFlight and I’m about to try to test it on visionOS. Shouldn’t the visionOS archive build that I submit to TestFlight indicate something about visionOS instead of iOS?
1
0
177
5d
nw_proto_tcp_route_init [C6:3] no mtu received
We have a relatively simple app that using Network.Framework, NWConnection, NWEndpoint to setup TCP connections with nearby devices also using the app. It's actually been working great for a while now but we've recently noticed with iOS 17.4/17.4.1 that we're spontaneously getting: nw_proto_tcp_route_init [C6:3] no mtu received sometimes the [C6:3] will be [C7:3] or another similar code. We may also occasionally see No route to Host appear in our console logs though this isn't definite. After this point the connection is effectively lost but we don't actually receive any updates on our NWConnection stateUpdateHandler to action on. It's sort of dead in the water so to speak. We've reproduced this issue with multiple devices on iOS 17.4.x and in multiple network settings (in office, cafe, home networks...etc). Nothing seems to make a difference. Any ideas on how to fix or workaround this? I saw a similar issue here: https://developer.apple.com/forums/thread/669519 but the original author never followed up and it's around 3 years old. I've captured a sysdiagnose log and can submit an issue if it warrants filing a bug report.
5
2
361
1w
Ios Sdk 17 Compatibility with react native version
Hi, I would like to know if ios 17 sdk is compatible with react native version 0.64. I am not able to build my app currently.. Error that i got when build Undefined symbols for architecture x86_64: "_GULLogBasic", referenced from: _MLKLog in MLKitCommon[x86_64]7 "OBJC_CLASS$_AppCenterReactNative", referenced from: in AppDelegate.o "OBJC_CLASS$_AppCenterReactNativeAnalytics", referenced from: in AppDelegate.o "OBJC_CLASS$_AppCenterReactNativeCrashes", referenced from: in AppDelegate.o "OBJC_CLASS$_FKUserDefaultsPlugin", referenced from: in AppDelegate.o "OBJC_CLASS$_FlipperClient", referenced from: in AppDelegate.o "OBJC_CLASS$_FlipperKitLayoutPlugin", referenced from: in AppDelegate.o "OBJC_CLASS$_FlipperKitNetworkPlugin", referenced from: in AppDelegate.o "OBJC_CLASS$_FlipperKitReactPlugin", referenced from: in AppDelegate.o "OBJC_CLASS$_GDTCORTransport", referenced from: in MLKitCommon[x86_64]6 "OBJC_CLASS$_GTMLogMininumLevelFilter", referenced from: in MLKitCommon[x86_64]200 "OBJC_CLASS$_GTMLogger", referenced from: in MLKitCommon[x86_64]26 OBJC_CLASS$_MLKITx_GIPLoggingReroutingGTMLogger in MLKitCommon[x86_64]200 "OBJC_CLASS$_GTMSessionCookieStorage", referenced from: in MLKitCommon[x86_64]26 "OBJC_CLASS$_GTMSessionFetcher", referenced from: in MLKitCommon[x86_64]26 "OBJC_CLASS$_GTMSessionFetcherService", referenced from: in MLKitCommon[x86_64]18 "OBJC_CLASS$_GULCCComponent", referenced from: in MLKitCommon[x86_64]11 "OBJC_CLASS$_GULCCComponentContainer", referenced from: in MLKitCommon[x86_64]3 "OBJC_CLASS$_GULCCComponentType", referenced from: in MLKitCommon[x86_64]3 "OBJC_CLASS$_GULUserDefaults", referenced from: in MLKitCommon[x86_64]2 "OBJC_CLASS$_RCTBundleURLProvider", referenced from: in AppDelegate.o "OBJC_CLASS$_RCTLinkingManager", referenced from: in AppDelegate.o "OBJC_CLASS$_ReactNativeNavigation", referenced from: in AppDelegate.o "OBJC_CLASS$_SKDescriptorMapper", referenced from: in AppDelegate.o "OBJC_CLASS$_SKIOSNetworkAdapter", referenced from: in AppDelegate.o "OBJC_METACLASS$_GTMLogger", referenced from: OBJC_METACLASS$_MLKITx_GIPLoggingReroutingGTMLogger in MLKitCommon[x86_64]200 "_kGTMSessionFetcherStatusDomain", referenced from: ___69-[MLKModelDownloader beginModelDownloadWithURL:modelInfo:conditions:]_block_invoke.285 in MLKitCommon[x86_64]18 ___150-[MLKITx_PHTHeterodyneSyncer batchSyncWithAccounts:syncedScopes:fetchReason:throttlingCache:heterodyneSyncInfo:accountToAuthToken:lastError:callback:]_block_invoke in MLKitCommon[x86_64]48 ___91-[MLKITx_PHTInternalHeterodyneSyncer syncHoldingLockWithSyncedScopes:fetchReason:callback:]_block_invoke in MLKitCommon[x86_64]51 ___63-[MLKITx_GMVCloudVisionClient initWithCloudUri:apiKey:options:]_block_invoke in MLKitVision[x86_64]7 ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Undefined symbol: _GULLogBasic Undefined symbol: OBJC_CLASS$_AppCenterReactNative Undefined symbol: OBJC_CLASS$_AppCenterReactNativeAnalytics Undefined symbol: OBJC_CLASS$_AppCenterReactNativeCrashes Undefined symbol: OBJC_CLASS$_FKUserDefaultsPlugin Undefined symbol: OBJC_CLASS$_FlipperClient Undefined symbol: OBJC_CLASS$_FlipperKitLayoutPlugin Undefined symbol: OBJC_CLASS$_FlipperKitNetworkPlugin Undefined symbol: OBJC_CLASS$_FlipperKitReactPlugin Undefined symbol: OBJC_CLASS$_GDTCORTransport Undefined symbol: OBJC_CLASS$_GTMLogMininumLevelFilter Undefined symbol: OBJC_CLASS$_GTMLogger Undefined symbol: OBJC_CLASS$_GTMSessionCookieStorage Undefined symbol: OBJC_CLASS$_GTMSessionFetcher Undefined symbol: OBJC_CLASS$_GTMSessionFetcherService Undefined symbol: OBJC_CLASS$_GULCCComponent Undefined symbol: OBJC_CLASS$_GULCCComponentContainer Undefined symbol: OBJC_CLASS$_GULCCComponentType Undefined symbol: OBJC_CLASS$_GULUserDefaults Undefined symbol: OBJC_CLASS$_RCTBundleURLProvider Undefined symbol: OBJC_CLASS$_RCTLinkingManager Undefined symbol: OBJC_CLASS$_ReactNativeNavigation Undefined symbol: OBJC_CLASS$_SKDescriptorMapper Undefined symbol: OBJC_CLASS$_SKIOSNetworkAdapter Undefined symbol: OBJC_METACLASS$_GTMLogger Undefined symbol: _kGTMSessionFetcherStatusDomain Linker command failed with exit code 1 (use -v to see invocation)
1
0
124
1w
App Stuck in review
The review status of my application has been stuck in review status for almost 48 hours and the time is rising. It also happened in my previous submission. At that time, I did not hear from the apple official for 3 days, he did not respond to the correspondence. so I canceled the submission and restarted the process. In the situation I am experiencing today, as I mentioned above, I have completed the second day. Is there a way to move the process forward without canceling the submission, or is there an idea whether it is necessary to stop and restart the review in every waiting situation exceeding one or two days? I opened an expedited review request. I also opened a ticket to Apple in the other app review question category. I don't know what else can be done.
2
0
141
1w
Autofill verification codes from Mail
We're testing this new functionality with our app. One issue I've discovered is that because Gmail intentionally doesn't support push via the Mail app, sending codes to a Gmail email means users will likely never see this autofill. It does appear if you enter the Mail app, pull new messages, and then quickly switch back to the code entry in your app and present the keyboard. I'm basically looking for a behaviour correction here from Apple. Perhaps iOS should intercept notifications for the Gmail app (and other notable apps), or provide a way for devs to publish codes to a system API. As it stands, a large portion of our customers who use Gmail presumably will not be able to use this autofill feature.
0
0
70
1w
SwiftUI previews don't work in multi-platform app
I created a native visionOS app which I am now trying to convert into a multi-platform app, so iOS is supported as well. I also have Swift packages which differ from platform to platform, to handle platform-specific code. My SwiftUI previews work fine if I just setup visionOS as the target. But as soon as I add iOS 17 (with a minimum deployment of 17), they stop working. If I try to display them in the canvas, compilation fails and I get errors that my packages require iOS 17, but the device supports iOS 12. Which I never defined anywhere. This even happens if I set the preview to visionOS. If I run the same setup on a real device or a simulator, everything works just fine. Only the previews are affected by this. How do the preview device decide which minimum deployment version it should use, and how can I change this?! Update: This only happens if the app has a package dependency for a Swift package that itself includes a RealityKitContent package as a sub-dependency. I defined to only include this package in visionOS builds, and also the packages themselves define the platform as .visionOS(.v1) If I remove this package completely from "Frameworks, Libraries, and Embedded Content" the previews work again. Re-adding the package results in this weird behavior that the preview canvas thinks it is building for iOS 12.
0
0
156
1w