We convert a .onnx file to mpsgraphpackage for iOS deploymentPlatform with command
“Mpsgraphtool convert -deploymentPlatform iOS -minimumDeploymentTarget17.0.0 model.onnx -path .”
When open output.mpsgraphpackage with Xcode16, there are only “generic” and “ Apple M2(MTLDevice)” options in the “Device” selection list. Cannot find any option for iOS device.
How can we view mpsgraph compiled for iOS platform?
We use Xcode16 on a MacBook Pro M2 with macOS 15.
Posts under iPhone tag
78 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
Hi everyone,
I am currently using Xcode 16.1, which only includes device support files up to iOS 16.4. However, I need to target iPhones running iOS 17 and iOS 18 (e.g., iPhone 15 and iPhone 16).
Is there any way to acquire the device support files for iOS versions above 16.4 without upgrading to a new Xcode version that hasn't been released yet? I’m unable to upgrade my Xcode due to hardware limitations, but I still need to test my app on these newer devices.
I’ve heard about manually adding device support files, but I’m unsure of the process or where to obtain them safely. Can anyone provide guidance or direct me to where I can find these files?
Thanks in advance for your help!
I am trying to install an app from a XCode project onto a iOS 17.6.1 device.
The Macbook is a MacOSX Sonoma 14.7, Apple M2 Pro. I'm running XCode 16.0. I receive a series of alerts before receiving the final message.
I tried to delete everything in this folder:
rm ~/Library/Caches/com.apple.dt.Xcode/Downloads/*
I reviewed the XCode components currently installed:
I downloaded more runtime simulators from this link. I then followed the instructions provided in this link. For example:
xcrun simctl runtime add "~/Downloads/iOS_17.4_Simulator_Runtime.dmg"
xcrun simctl runtime add "~/Downloads/iOS_17.5_Simulator_Runtime.dmg"
I'm still getting a message beside the device I want to install my app:
The Developer Disk Image Could Not Be Staged On The Host
I need help. I don't know what else to do. I don't see any matching simulators available for 17.6.1 and 17.7. Does anyone have any ideas?
The apps. like viber, whatsapp are not able to recognize/ upload the photos after 18.01 installation.
After updated MAC OS I am getting this error in swift version 16.0 and MAC OS VERSION 15.0.1
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Closures' from project 'Pods')
Hi Apple Engineer,
My app is using ImageCaptureCore framework to communicate to external DSLR Camera. When I connect my device to a camera, I execute the requestContentsAuthorization(completion:) to request for Access Files on Connected Cameras. This is the dialog when the request is executed:
When I tap "OK", the status of content authorization keeps "Denied". even when I open "Files and Folders" permission in "Privacy & Security" Settings.
When I switched ON the permission, the switch keeps back to turned off. You could see the reproduce in this GoogleDrive video https://drive.google.com/file/d/15B-R5TONgMWg8qFiYUGK0hTy62dsVGUX/view?usp=sharing
The occurrence keeps happen even:
I uninstall and install the app back
Do "Reset Location & Privacy"
Do "Reset All Settings"
I attached the sysdiagnose files in this GoogleDrive file https://drive.google.com/file/d/11lovl_xC95AKXQTkZ1_e6UbEgS5md0Z3/view?usp=sharing
I firstly experience this issue after researching ImageCaptureCore's API. I executed resetContentsAuthorizationWithCompletion:. After that, my permission request keeps denied as described above :(
There are other developer that experiences the same as mine https://forums.developer.apple.com/forums/thread/756960 . There is a simple sample project there and it's reproducible in my case.
Could you help me how to accomplished my app can be granted for permission to "Files and Folders" permission when using ImageCaptureCore? Could it be a bug from the system?
I am attempting to create a product and application that utilizes the Face-ID sensor for something outside of Face-ID itself. It is possible to re-use this sensor for something outside of Face-ID?
Hi Guys,
I was wondering if anyone here experienced an error with XCode Cloud when running pipelines, specifically
Error is: "An internal error was detected which caused this stage to error. The error has been logged, and you can re-run this build again."
Upon checking the logs, there is no specific error other than the above and
"The pipeline action could not complete due to an error. The error may not occur on rebuild."
Note that in the pipeline, there is an obfuscation step using IXGuard. However, the IXGuard steps show successful on the logs.
Hi,
I have a hardware device that asks as an ethernet server.
I need to connect to it using a TCP socket over ethernet.
Problem is, I cannot find an API or example code on how to go about this. I have tried to search through the available network interfaces using AF_LINK (link layer) family but only the wifi shows up (en0), even when the device is connected and the iPhone self-assigns an IP etc.
Extra challenge is, I am using objective C because all of my other code is written that way. I'm happy to add a swift module where that is the only option.
Can someone please point me in the right direction?
Hello,
I've been experimenting with the iphone-performance-gaming-tier Device Capability using TestFlight.
I've decided I don't want the restriction and I've just submitted a new build (new version number) without the value but the build metadata still includes it.
How do i remove it? I don't want to the restriction.
Cheers
I tried "WWDC24: Build compelling spatial photo and video experiences | Apple" and it can successfully capture spatial video.
But I found the video by my app differs from the iPhone build-in camera app in:
Videos captured with the iPhone's build-in camera app tend to have a more natural or warmer tone, while videos taken with my app appear whiter or cooler in color temperature.
In videos recorded using the iPhone's built-in camera app, the left eye image is typically sharper than the right eye image. However, in my app, this is reversed: the right eye image is clearer than the left eye image.
I've noticed that when I cover the wide-angle lens while shooting, the entire preview screen in my app becomes brighter. However, this doesn't occur when using the iPhone's built-in camera app.
Is there any api or parameters to make my app more close to the iPhone build-in app? I have tried "whiteBalanceMode" and "exposureMode" but no luck.
Hello!
I'm facing the following Appstore issue.
There was an watchOS only app, without a companion app. In current 1.6 version the app has a companion app and it can be properly installed by new users from their iPhones or watches. Unfortunately, all old users, who have installed the app from their watches don't see a way to install the app from the Appstore (they can download the latest watchOS version though). Many things have been tried - uninstalling, installing on the watch. Looking for a purchase, removing subscription, but without luck.
The Appstore shows "purchased" button instead "Get" or the cloud icon.
Is this a bug in the Appstore or there is a way to recover from this edge case.
Thanks,
Emil
When I use Air Drop from my iPhone 11 on a Samsung TV , The control keys on the phone display are often disabled: I can't go forward or backward in the video.
it happens most of the time
Xcode 16 RC refuses to recognise my iPhone 13 mini running IOS 18 as a device and won’t compile onto it. Using the exact same setup I can compile onto my iPad running IOS 17.5.
Xcode used to compile onto it (Xcode 15.x and iphone on IOS 17.x). My iphone is a known device in my developer account. I have switched on ‘Developer Mode’ in the iPhone Settings and rebooted. I am using an Apple lightning cable. I’ve tried changing USB ports. The Mac recognises it in Finder.
On one app my minimum deployment is IOS 17. I have created a new app where the minimum deployment is IOS 18 and tried both in combinations, below.
I can plug in my iPad running iPadOS 17 and Xcode 16 RC will compile successfully onto it (app is minimum deployment IOS 17) , just not my iPhone now that I upgraded it to IOS 18. I have:
installed the Iphone 13 mini simulator with IOS 18 on Xcode 16 RC and compiled successfully to that with both apps.
rebooted all devices and replugged all devices in countless combinations, countless times.
tried different apps with different minimum deployments, including sample code written by others.
tried setting my minimum deployments to IOS 18
The main issue is that at best, Xcode 16 RC ‘sees’ my iPhone mini and tries to pair with it but doesn’t succeed. I tried following this thread: https://developer.apple.com/forums/thread/764196?answerId=804884022#804884022
and tried ‘Quick fix 1’. Which at least allowed Xcode to sometimes ‘see’ my phone, but after a few reboots, no longer does.
Quick Fix 1:
“Open Terminal and run (replacing the path to Xcode 16.0 if needed):
sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /“
Apple M1 Pro - Sequoia 15.0 (24A335)
Xcode Version 16.0 (16A242d)
I have submitted feedback:
FB15264854
After installing iOS 18, the iPhone would have consistent low volume and from this low, it wants to go more down suddenly when playing some media and gets back to its normal condition (already low) itself. I have tried several things from Internet like forced restart, several times restart, turning on vocal shortcut and turning it off back, but nothing helped. Any suggestions? Its Iphone 16 pro max by the way
Can’t start fitness video with my iPhone on my tv since new update 18.1. Air play is connecting I see the countdown then the dots rolling but nothing happens and I end up receiving a « can’t read video » message.
I’m using an iphone 16 pro max, an apple watch ultra (1st gen) and an apple tv HD (A1625 model).
I have almost the same issue with a more recent Apple TV, but on that one it’s just painfully long before the video starts but it does start eventually (just taking much longer than it used to). That some tv is an A2843 model (apple tv 4k 3rd gen).
Has anyone else had this issue?
hello,
i want to test my app on an iPhone15 pro simulated device runnig ios 17,5
i have installed os images
i have created a new simulated device
But i do not see him into xcode 16 tool barr window as i want to run my app on this particular device
i only a small list of devices
please do not tell me again it is about some "/usr/var right acces problem" stuff
i am very desapointed by new software releases that are working baddly compare to their previous version
When I go to the software update tab in settings and have beta updates off 18.0.1 does not show up. I need to get off 18.1 since it’s ruining my battery life, is there any way to get 18.0.1 without a computer?
On iPhone devices with dynamic islands (e.g. iPhone 15 Pro Max), the proximity sensor takes about 3 seconds to activate, is this normal?
The iPhone 13 responds almost instantly, but the iPhone 15 Pro Max seems to take a while.
class ProximitySensorManager {
// Shared instance for global access (optional)
static let shared = ProximitySensorManager()
// Proximity sensor activation flag
private(set) var isSensorEnabled: Bool = false
// Start observing proximity sensor changes
func enableProximitySensor(observer: Any) {
guard !isSensorEnabled else { return }
isSensorEnabled = true
UIDevice.current.isProximityMonitoringEnabled = true
NotificationCenter.default.addObserver(
observer,
selector: #selector(proximityStateChanged),
name: UIDevice.proximityStateDidChangeNotification,
object: nil
)
}
// Stop observing proximity sensor changes
func disableProximitySensor(observer: Any) {
guard isSensorEnabled else { return }
isSensorEnabled = false
UIDevice.current.isProximityMonitoringEnabled = false
NotificationCenter.default.removeObserver(
observer,
name: UIDevice.proximityStateDidChangeNotification,
object: nil
)
}
// Proximity sensor state change handler
@objc private func proximityStateChanged() {
if UIDevice.current.proximityState {
print("Proximity sensor detected close object")
// Additional functionality can be added here (e.g. lowering the screen brightness)
} else {
print("Proximity sensor detected no object")
}
}
deinit {
//disableProximitySensor() // Clean up observer on deinitialization
}
}
I am experiencing a bug on my iPhone 13 after updating to iOS 18 beta 5. This bug causes my phone to unexpectedly show a black screen with a "loading" indicator, and then it returns to the lock screen. I have to unlock it for the phone to return to normal. This issue occurs repeatedly.
I am not entirely sure what is happening with my device. I believe it is also experiencing overheating issues.
Although the battery seems to be optimized, the phone is getting hot and still has the same bug mentioned above after the iOS 18 beta 5 update.
Please help me, I would like to so much resolve this issue.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Beta
iPhone
Developer Tools
iOS