I am new. I have never used Swift nor XCode or the CLI. But I have found and managed to test my App that I created for testing on my iPhone.
I have absolutely no intentions to put it on the App Store. I even made it Open-Source on GitHub.
I learned a lot of things and ways to prevent crashes, but unfortunately I am slowly starting to lose the ability to put my App on my iOS.
I am new here as a developer. But I have troubles to create a Developer Account, so I am not sure what I should do.
Here's what I think I am having issues with:
I feel like you can only create a Developer Account if you have a business, is this true?
I really find it cool to test my own App on my own phone. But I want to do it in an official way. But I don't know how.
Others have told me that you'd need a License for the App Store. But I am not trying to put it on the App Store, will this make it impossible for me to test my own app?
Why make an app if not putting it on the App Store?
You can learn. If you make good Apps or Libraries, you can provide them to other Developers! Maybe even an opportunity to collab with someone and even indeed put it on the App Store with a valid Developer Account.
Seriously, if I wouldn't have been able to test my iOS app through other ways on my iPhone, I'd have never been able to make a short breakdown about AVAudioEngine and AVAudioSession. I've seen people that have run into these crashes. I tried to look up for a fix, but found none.
I saw apps that allowed you to use a Microphone on a Laptop/PC and I decided to make my own one to test, and succeded, while I yet need to figure out a few crashes, I managed to do it, and I really want to continue and actually use my own App...
So I was really happy that I could make a post to provide a guide in hopes that it would help someone. And I would do more, but I really need help with figuring out how I can test my own app on my own phone.
I hope that Developer Relations can help with this.
Developer Tools
RSS for tagAsk questions about the tools you can use to build apps.
Posts under Developer Tools tag
200 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
When I try to run my app on my iPhone, from Xcode, I get a popup that says Unable to Install "AppName". There is some text in the popup. Here's the first part of it. (I replaced the real app's name with "AppName".)
Anyone know how to fix this?
Unable to install "AppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
DVTErrorCreationDateKey = "2024-09-28 04:04:29 +0000";
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
Unable to install "AppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
--
Could not inspect the application package.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
DVTRadarComponentKey = 282703;
MobileDeviceErrorCode = "(0xE8000051)";
"com.apple.dtdevicekit.stacktrace" = (
...
it's been 48 hours and I still haven't received a link where I can upload an ID, nor have I been able to pay. My account has been suspended and paying transactions cannot be completed no matter which card I try. I need to send a link where I can upload an ID and speed up the registration process. I have written my mobile application, completed its codes and now I have to publish it. My client is waiting for the application to be published. I need urgent help with this.
I've upgrade my macbook m3 pro to macOS 15, I have 2 iPhones (12 Pro and 16 Pro) - both on iOS 18 and have 3 versions of Xcode installed (15.4, 16.0, 16.1-2 beta)
For the past week I'm unable to develop on my physical device and checked all the threads in this forum for a workaround to disable the "Connect via Network".
If I'm not connected to VPN on any of my devices, I get the process attached via network after ~20 minutes, but if I try to do it while on VPN it takes forever (not even sure, can't spend 1 hour waiting to be attached or not)
What can I do to disable the "Connect via Network" and why is enabled by default and greyed out?
I am honored that I successfully participated in the "Envision the future: Build great apps for visionOS"(https://developer.apple.com/events/view/ZCH7ZUY24C/dashboard) conference. However, unfortunately, I am in China, and due to the visa problem (because it usually takes at least 2 months to apply for a visa, but it only takes about 10 days from the time I received the notice to the meeting), I can't go to the United States to participate in the site. So I hope Apple can place an iPad on site and create a FaceTime link, and then I can make a call to this iPad. I also told Apple about this suggestion, but now there are only a few days left to start. They didn't reply to me. Even Apple has sent me the ticket to the Developer Center and asked me to add it to the Apple Wallet App, which means that Apple has not There is a request to deal with me. So I hope you can give me some advice or help me for those who know about this aspect. For Apple's internal engineers, if possible, I hope you can contact the person who manages this meeting. I'm very grateful for this. Thank you.
Hi there,
In a project that I am working on, whenever I try running instruments for allocations to see the memory allocations that are happening under the hood, I see the statistics, and the traces updating, however the chart never updates.
I have made new projects on the machine, and I have tried different Xcode versions, and they all show the chart just fine. I have tried running the project on other machines with no success. I have double checked the arguments and options on the active schema I am trying to profile with the schema of a new project and they are identical.
Here is a picture of how it looks:
My questions are as follows:
What properties and settings can disable the chart from showing up?
What diagnostic steps recommended that I should take?
I can not share a reproducible as this is the only project I have with this problem and it is not mine, but please tell me if there is anything else I can provide in order to debug this.
All the best
Parsa
I'm running Xcode 16 on Sequoia 15.0 with a M1 Max Pro.
The download completes, but every now and then (I've counted 3 times so far), after logging in to my computer and launching Xcode (not necessarily from a restart , the Predictive Code Completion Model starts downloading again.
Any solution?
Thanks.
What minimal changes can I make to use Xcode 16+ predictive code completion (PCC) when I've been booting from external drives (on the same apple-silicon machine)?
PCC says it requires booting from an internal drive.
I boot from external for a host of reasons that aren't going to change, but need to investigate whether/how I should accommodate PCC.
I haven't found technical communications on PCC requirements, and I hate to guess (wrong) because OS/workflow reconfiguration is hard and disruptive. So this post is to ask whether my approach would work, or if there's a better one.
I hope to continue using the external for the user home directory, the installed Xcode application, and Xcode temporary files (and of course the projects and artifacts).
(a) Does the "internal drive" requirement extend only to booting, or also to installing Xcode or situating the user HOME dir?
(b) Can one use the same external HOME directory for a user booting alternately from an internal and external drives? I would doubt it since the OS's would conflict e.g., in the HOME/Library state.
So I assume that means we use separate HOME dir's, but link key user HOME directories to external/real HOME (git, etc. - also .ssh?). Then OS's have distinct views, but user has mostly common view. (Assuming user always codes/builds for least-common-denominator.)
Aside: is it possible to redirect the system var/temp to an external?
(c) Xcode signing for the same machine/CPU seems locked to a specific OS. I.e., to switch between OS drives but do code signing in Xcode, I've had to re-issue a certificate.
(c-1) Is that avoidable?
(c-2) Can I somehow maintain a per-machine certificate, and toggle between them?
(c-3) Is that process made possible or impossible if Xcode is always pointing at the same Derived-Data/Archives directories? Is there any way to make it semi-automatic, once configured?
Thank you!
(I didn't see any forum tag for PCC.)
I've been trying to enroll to Apple Developer Program for my company. They requested the documents below
Applicant’s government-issued photo ID
Applicant’s employment verification
Business documents for B***:
Extract from the Commercial Registry (officially signed and stamped)
Latest version of the company's Articles of Association
Details of the company's tax office and tax number
A recent signatory circular of the company
With a note: If your documents aren’t in a supported language, please include solicitor-certified English translations.
I've uploaded the original documents and the computer generated translations but they didn't except it. Translating these documents costs about 1500 USD and small companies like us can't afford the translation cost. Minimum wage is not even 500 dollar in my country.
I've enrolled the Developer Program before and they only needed the DUNS number, which I already provided. I've asked in social media and someone based in my country enrolled the program about two months ago with only a DUNS number.
Has anyone ever encountered this issue? Is this a new policy? I couldn't find anything about this policy on the web.
In Xcode15, I can set the font of the control on the xib to PingFangSC Regular、Medium、Bold, but after upgrading to Xcode16, I can't set the style, only a PingFangSC simplified, how is this?
I just upgraded to Version 16.0 (16A242d) and unfortunately the App that used to run perfectly fine on Xcode 15 is now broken. It crashes right after showing the Launch Screen on the Simulator. Here's the formatted error message in the Console:
dyld[80159]: Library not loaded: @rpath/AppName-iOS.debug.dylib
Referenced from: <App ID> /path/to/AppName-iOS.app/AppName-iOS
Reason: tried: '/path/to/DerivedData/AppName-iOS.debug.dylib' (no such file),
'/path/to/CoreSimulator/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/AppName-iOS.debug.dylib' (no such file),
'/path/to/AppName-iOS.app/AppName-iOS.debug.dylib' (code signature not valid for use in process: Trying to load an unsigned library),
'/path/to/DerivedData/PackageFrameworks/AppName-iOS.debug.dylib' (no such file),
'/path/to/AppName-iOS.app/Frameworks/AppName-iOS.debug.dylib' (no such file),
'/path/to/CoreSimulator/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/AppName-iOS.debug.dylib' (no such file)
For some reason the Library is unsigned and I've checked all the settings with no luck.
Hi there!
Was there a change in Xcode regarding incremental builds / updating an active Simulator with a new build? We use xcodebuild to manage our internal build framework and out of the sudden, incremental builds are not launched anymore and the Simulator is stuck waiting for the new build to be launched. This was not happening for the last 10+ years.
If there is an xcodebuild flag and/or guide of this new behavior, it would help a lot.
Thanks everyone!
Hi!,
Did you experienced failure of xcodebuild tool in Xcode 16? I can't build from command line. It fails when I am trying to perform clean, build, test, etc. actions.
macOS version: 14.7 (23H124)
Xcode 16.0, Build version 16A242d
My steps:
sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app
xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
As result showBuildSettings is working as expected when using Xcode 15.4.
Command line invocation:
/Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Build settings for action build and target Testability_macOS:
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = YES
AGGREGATE_TRACKED_DOMAINS = YES
ALLOW_TARGET_PLATFORM_SPECIALIZATION = NO
ALTERNATE_GROUP = staff
...
Then:
sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app
xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
As result error:
Command line invocation:
/Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: -[NSTaggedPointerString unsignedIntegerValue]: unrecognized selector sent to instance 0xbe036b67f7528701
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
3 ___forwarding___ (in CoreFoundation)
4 _CF_forwarding_prep_0 (in CoreFoundation)
5 -[DVTDeviceManager _startObservingDevice:] (in DVTFoundation)
6 -[DVTDeviceManager _adjustAvailableDevicesForChangeKind:addedObjects:removedObjects:] (in DVTFoundation)
7 __42-[_DVTDeviceLocatorTracker startObserving]_block_invoke (in DVTFoundation)
8 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
9 NSKeyValueNotifyObserver (in Foundation)
10 NSKeyValueDidChange (in Foundation)
11 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)
12 __62-[DVTiPhoneSimulatorLocator _startLocatingDevicesInDeviceSet:]_block_invoke_2 (in IDEiOSSupportCore)
13 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
14 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
15 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
16 __CFRunLoopDoBlocks (in CoreFoundation)
17 __CFRunLoopRun (in CoreFoundation)
18 CFRunLoopRunSpecific (in CoreFoundation)
19 +[DVTKVOConditionValidator waitForCondition:sourceObject:keyPathAffectingConditionBlock:timeout:] (in DVTFoundation)
20 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
21 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
22 XcodeBuildMain (in libxcodebuildLoader.dylib)
23 -[XcodebuildPreIDEHandler loadXcode3ProjectSupportAndRunXcode3CommandLineBuildToolWithArguments:] (in xcodebuild)
24 -[XcodebuildPreIDEHandler runWithArguments:] (in xcodebuild)
25 main (in xcodebuild)
26 start (in dyld)
Abort trap: 6
Simple commands as shown below are working, but not typical build actions.
xcodebuild -h
xcodebuild -version
xcodebuild -showsdks
Thank you in advance!
Hello everyone,
I’m encountering an issue while trying to archive my app in Xcode, and I hope someone can help me troubleshoot it.
Error Details:
Domain: IDEArchivedApplicationErrorDomain
Code: 1
Failure Reason: Archive content at path /Users/c1/Library/Developer/Xcode/Archives/2024-09-22/alpha release 4 22-09-24, 2.52 PM.xcarchive/Products/Applications/Runner.app is missing a bundle identifier.
User Info:
DVTErrorCreationDateKey = "2024-09-22 09:22:03 +0000";
Steps Taken:
I’ve verified that the Bundle Identifier is correctly set in the project settings under the General tab.
Cleaned the build folder (Product > Clean Build Folder).
Restarted Xcode and attempted to archive again.
Checked that all targets in the project have a valid Bundle Identifier.
Has anyone experienced a similar issue or have any suggestions for resolving this? I would appreciate any guidance on how to fix this missing bundle identifier error.
Thanks in advance for your help!
I am having an issue with CFBundleIdentifier error when trying to upload app ipa file to App Store Connect from Transport App.
I get the following error in Transporter app when trying to deliver the .ipa file to app store connect:
Asset validation failed (90685)
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value
'com.jordanjcastro8.castroCookbook' under the iOS application 'Runner.app'.
(ID: 9b205294-8d8b-4d4a-a7ef-74b559054ed8)
I have already read through the solutions of similar posts online such as:
click runner in xcode -> general tab -> under frameworks, libraries, and embedded content set Pods_Runner.framework to 'do not embed', and
click build phases tab -> delete embed pods frameworks step.
I tried these solutions but when I run 'flutter build ipa' it builds archive and ipa with no issue but I notice while this is running I checked xcode and saw Runner tab closes so I opened it and clicked to build phases tab and saw that the embed pods frameworks step has reappeared and is probably being applied in the 'flutter build ipa' command.
I suspect this reappearance of the embed pods frameworks step is why I continue to get the CFBundleIdentifier error in Transport.
Does anyone have any idea how to fix this issue? Is there a script I could use and where would I put this script to have it run?
I tried to enable FUSE_BUILD_SCRIPT_PHASES in my project (based on https://projects.blender.org/blender/blender), and this improves the build time when I use Xcode, but not on my CI machine, which builds the same project from command line via xcodebuild. And indeed, xcodebuild runs the shell script phases sequentially, even if I set -jobs 20.
What am I doing wrong?
Hello.
I don't even know where to start. We have a React Native application with some native modules that have never been an issue. The app was working under Sonoma Xcode16, yesterday I autoupdated my MacOS to Squoia, and the application won't build using the newest Xcode16 and Xcode command line tools.
The builds system crashes in the middle of building the app and throws a really vague description:
unexpected service error: The Xcode build system has crashed. Build again to continue.
I Post the report summary (without the kernel triage), since I can't find what's wrong after updating most of my libraries...
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: XCBBuildService [95423]
Path: /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService
Identifier: com.apple.dt.XCBBuildService
Version: 1.0 (23000.1.226)
Build Info: XCBuild-23000001226000000~21 (16A242d)
Code Type: ARM-64 (Native)
Parent Process: Xcode [73582]
Responsible: Xcode [73582]
User ID: 501
Date/Time: 2024-09-19 18:13:24.6355 -0600
OS Version: macOS 15.0 (24A335)
Report Version: 12
Anonymous UUID: 43B52D98-515B-9112-EEEB-8F7C77E1126D
Sleep/Wake UUID: 95C65D73-8F98-45C7-BF7A-5799C9E1CAA4
Time Awake Since Boot: 130000 seconds
Time Since Wake: 27974 seconds
System Integrity Protection: enabled
Crashed Thread: 11
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: XCBBuildService [95423]
Application Specific Information:
abort() called
Thanks in advance.
Edit: already tried with this, which is indeed a library I am using, but still keeps crashing: Stack Overflow Solution based on some library update
So our app was originally kicked back because it's a calculator for our company. So they said to make it a private app, it is approved, but how do I get it to my team? I'm so confused by all of this.
I got a crashlog of my iPad App from a user and now I have to find out where in the app the problem lies.
I use Xcode Version 16.0 (16A242d) and then follow these steps:
Attach an iPad
Xcode -> Window ->Devices and Simulators
Open Recent Logs
Navigate to the .ips file
Open it
Result:
I can see that the app exceeds the wall-clock allowance
All calls of my app are not symbolicated.
Question:
How can I get Xcode to symbolicate the crashlog properly?
Hi guys,
My account has Renewal date on October 28, 2024. Device reset date on October 28, 2024.
However, I don't see any option to renewal.
Any idea about it ?
Thank you
Best Regards