Developer Tools

RSS for tag

Ask questions about the tools you can use to build apps.

Developer Tools Documentation

Posts under Developer Tools tag

342 Posts
Sort by:
Post marked as solved
35 Replies
58k Views
Hi, I'm really hoping someone can help me. After updating my iPhone 11 to iOS 16 and tried to launch an app from xCode on it, I noticed that I didn't have dev mode enabled. When I went to Settings > Privacy & Security to toggle the Developer Mode on, it wasn't there. There is no Developer Mode option in my settings, the only option and the end of Privacy & Security is Lockdown Mode. I tried so many troubleshooting techniques and spent a lot of time looking for solutions. I tried powering on and off while connected to my macbook with xcode running and again without xcode running. Made sure my device has the latest update (iOS 16.0.2) and my device has trusted the connection to the Macbook as well. I also had the same problem on my girlfriends brand new iPhone 13, I was really hoping it was just my device but no, her device doesn't have the Dev Mode option either. Out of curiosity I asked my friends at work if they had the option but they did not. I even went as far as going into an Apple store and checking the devices on display and they didn't have the option either. And when I asked the staff their, they didn't know why the option wasn't showing up on mine or even their own personal devices. The only source that I have found with the same issue as me is this youtube link (https://www.youtube.com/watch?v=5AEusqQV794), where it mentions that this is an issue with iOS 16 public beta users and not developer beta user and the only way to solve this is by sidloading the app which I am not gonna do. Please note that I am not running beta version on my device. I can't help think that there's something obvious that I'm missing or need to do but just can't find it. Any help or advice will by really appreciated :) Thank you
Posted
by
Post not yet marked as solved
9 Replies
15k Views
Hello! Every time I attempt to enroll into the program I get hit with one of the following two errors: Unknown Error Please try again. Apple ID Issue The region of the Apple ID that's signed in to Settings or System Preferences is different than the region of the Apple ID with which you signed into the Apple Developer app. Sign in to Settings or System Preferences with an Apple ID that has the same region. I’m very confused by this message because I have never changed the region of my Apple ID - it should be United States. How can I complete my enrollment?
Posted
by
Post not yet marked as solved
1 Replies
751 Views
Hi all I don’t even know if this is a help post or just a cry from my soul. I'll start from the very beginning. My firm is developing software for small and medium businesses. For us developers, there is nothing unusual about this. If the client's store, we transfer it beautifully and without problems to the mobile application. We have been releasing apps since 2019. And everything was fine, even excellent, until August 2022. In August, after submitting the application for review, I, as the account developer, received a notice that clause 3.2f was violated and that my account would be closed. It is clear that I immediately filed an appeal, but the Apple inspectors said that they would not change their minds. To say that I was shocked = to say nothing. Since then, I have filed 6 appeals, created other accounts (tried), so that our clients are calm that we are fulfilling our obligations. no response to appeals (no calls, no letters) Does anyone know how else to contact support? Because I have no more ideas, honestly - I'm broken. Thanks for reading, Tim
Posted
by
Post not yet marked as solved
3 Replies
7.2k Views
This is the first time I’ve tried to run an Xcode app on my iPhone. To do this, the iPhone must have “Developer Mode” enabled but this settings was not visible on my iPhone. I searched the blog and did not find a suitable solution. Eventually, I got it working so wanted to publish my findings. I am documenting this after trying many things so I am not 100% sure of the magic formula, but “I think” this is what is needed. PROBLEM iPhone -> Settings -> Privacy & Security -> Developer Mode (NOT VISIBLE) ENVIRONMENT iPhone 12 Pro Max running IOS 16.2 MacBook Pro running macOS 12.5.1 Xcode 14.2 CONNECT IPHONE TO MAC (via USB cable) CHECK DEVICE STATUS (in Xcode) Select menu Window -> Devices and Simulators You should see your iPhone but it will show warnings/issues. (e.g. device not in Developer Mode) ADD APPLE ID (in Xcode)  Open your app project in Xcode Select menu Xcode -> Preferences Select Accounts tab Add your Apple ID (It will be listed as a “Personal Team”) SELECT IPHONE AS DESTINATION (in Xcode)  Select menu Product -> Destination -> Choose Destination In the “IOS Device” section, select your iPhone as the destination (NOTE: After doing this, the “Developer Mode” setting was available on my iPhone) iPhone -> Settings -> Privacy & Security -> Developer Mode (Now visible) SELECT DEVELOPER MODE (on iPhone) Settings -> Privacy & Security -> Developer Mode (ENABLE) SELECT APPLE ID AS TEAM (in Xcode)  Select your project in the Project Navigator Select the project in the TARGETS section Select “Signing & Capabilities” tab In the “Signing” section, select the Team as your Apple ID (you previously entered) After this, I had an error and need to modify the “Bundle Identifier” to make it unique. I just added some numbers to the end and it worked. CHECK. DEVICE STATUS (in Xcode)  Select menu Window -> Devices and Simulators This time, your iPhone should appear without any warnings/issues. LOAD APP ONTO IPHONE (in Xcode)  Hit the arrow in Xcode to Start the active scheme. (The App will be loaded onto your iPhone.) RUN APP (on iPhone) Try running the app and the iPhone will not allow it since you have not authorized apps from this developer. Goto Settings -> General -> VPN & Device Management Authorize your Apple ID to run apps on this phone. You should now be able to run the app without issue.
Posted
by
Post not yet marked as solved
6 Replies
2.0k Views
I am not able to add a Profile to Network link conditioner, when I press the Button the text on it just enlarges a bit and nothing else happens. It doesn't matter if the Link conditioner is already ENABLED or disabled the behaviour is the same.
Posted
by
Post marked as solved
4 Replies
1.9k Views
Hi everyone, I'm trying to use the Notary Service using xcrun notarytool. As part of that process I want to store the credentials using xcrun notarytool store-credentials. When entering the correct credentials, I receive following error: Error: HTTP status code: 401. Unable to authenticate. Invalid session. Ensure that all authentication arguments are correct. I am using Xcode 14.2 (14C18). Output from running the command with the --verbose argument: [13:12:09.377Z] Debug [MAIN] Running notarytool version: 1.0.0 (27), date: 2023-03-03T13:12:09Z, command: /Applications/Xcode.app/Contents/Developer/usr/bin/notarytool store-credentials --verbose This process stores your credentials securely in the Keychain. You reference these credentials later using a profile name. Profile name: <profile-name> We recommend using App Store Connect API keys for authentication. If you'd like to authenticate with an Apple ID and app-specific password instead, leave this unspecified. Path to App Store Connect API private key: Switching prompts to app-specific password credentials. Developer Apple ID: <apple-id> App-specific password for <apple-id>: Developer Team ID: <team-id> Validating your credentials... [13:12:39.468Z] Info [API] Initialized Notary API with base URL: https://appstoreconnect.apple.com/notary/v2/ [13:12:39.469Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/test?, Parameters: [:], Custom Headers: private<Dictionary<String, String>> [13:12:39.470Z] Debug [AUTHENTICATION] Delaying current request to refresh app-specific password token. [13:12:39.470Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/asp?, Parameters: [:], Custom Headers: private<Dictionary<String, String>> [13:12:39.471Z] Debug [AUTHENTICATION] Authenticating request to '/notary/v2/asp' with Basic Auth. Username: <apple-id>, Password: private<String>, Team ID: <team-id> [13:12:39.472Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls. [13:12:44.032Z] Debug [API] Received response status code: 401, message: unauthorized, URL: https://appstoreconnect.apple.com/notary/v2/asp?, Correlation Key: 7DPE2ASCQ7LLQ2FL4QANKNEBHI [13:12:44.033Z] Error [TASKMANAGER] Completed Task with ID 2 has encountered an error. [13:12:44.033Z] Debug [TASKMANAGER] Ending Task Manager loop. Error: HTTP status code: 401. Unable to authenticate. Invalid session. Ensure that all authentication arguments are correct. What can I do to fix this issue?
Posted
by
Post not yet marked as solved
4 Replies
688 Views
On Xcode 14.3 I am unable to download symbols for watchOS 8.7.1, which is preventing me from developing on my Apple Watch 3 device. The detailed error message is: DVTDownloadable: Download Failed. Downloadable: https://download.developer.apple.com/Developer_Tools/watchOS_19U67/Watch3_1_19U67.dmg. Error Domain=DataGatheringNSURLSessionDelegate Code=1 "Failed with HTTP status 403: forbidden" UserInfo={NSLocalizedDescription=Failed with HTTP status 403: forbidden} The link https://download.developer.apple.com/Developer_Tools/watchOS_19U67/Watch3_1_19U67.dmg doesn't work for me in Safari either.
Posted
by
Post not yet marked as solved
6 Replies
2.8k Views
Hi, as Xcode 14.3 dropped Rosetta 2 Support and added a run option directly in Xcode 14.3 (Rosetta Simulators), I wondered how I can trigger a build for a i.e. iPhone 14 Pro (Rosetta) via CLI. I already checked the man page of xcbuild and xcrun. xcrun simctl list also outputs only the simulators and the device IDs which brings me to the assumption that the building and running for Rosetta is a parameter/flag set by Xcode. But which and where? Happy for any sort of help, resource, or hint.
Posted
by
Post not yet marked as solved
4 Replies
1.3k Views
Hello all! My project is C++ with CMake. The application going to be using Network Extension. Infollowing of official documentation there need to be created subtarget in the project within NE. Is there any manuals of how to add correctly subtarget Network Extension from CMake that will be built with main appication?
Posted
by
Post not yet marked as solved
1 Replies
1.8k Views
I am setting up fastlane to run the builds of our iOS app. Is there a way to increment the build number based on the latest TestFlight build and upload a build, but without changing the project file? I'd rather not pollute the Git history with build number changes. Currently the app is being built with Xcode Cloud and somehow it's managing to keep CURRENT_PROJECT_VERSION = 1 in the project file. Unless I'm missing something I would basically have to do: current_version = get_version_number() previous_build_number = latest_testflight_build_number( api_key: api_key, app_identifier: app_identifier, version: current_version ) current_build_number = previous_build_number + 1 increment_build_number( build_number: current_build_number ) build_ios_app(...) increment_build_number( build_number: 1 )
Posted
by
Post not yet marked as solved
2 Replies
654 Views
We have four build agents. 2 x Intel, 8GB RAM 1 x M1, 8 GB RAM 1 x M2, 8GB RAM The only differences in the configurations are the processor types. On the Intel systems things work fine. On the M1/M2 systems we see the "Force Quit Applications" dialog, with the message: "Your system has run out of application memory." None of the processes it offers to quit are big, but checking Activity Monitor shows testmanagerd using 9+ GB (yes GIGABYTES) of Memory. It show "Real Memory" of about 1GB. Anyone have an idea of what's going on here? All of the systems are running the most current Ventura build, and Xcode 14.3
Posted
by
Post not yet marked as solved
2 Replies
388 Views
My Developer Program membership expired. In my developer account, I was promped to renew it. This has been done and a payment confirmation has been immediately received. When I reopen my account the same message "Your Apple Developer Program membership has expired." appears. The same message also states "If you agreed to the Paid Applications Agreement, you’ll need to agree to it again after renewal in the Agreements, Tax and Banking section of App Store Connect." To be honest I am not sure what it is. In any case, if I go there it is empty. Note that a few months ago I changed my account email. I am now logging in with my new email. I've been using the Developer Program membership to codesin and validate an App which is not sold in the App Store.
Posted
by
Post not yet marked as solved
0 Replies
947 Views
For the following build command: xcodebuild -scheme "my-app" -skipPackagePluginValidation -destination "platform=iOS Simulator,name=iPhone 14" -sdk "iphonesimulator" IPHONEOS_DEPLOYMENT_TARGET=16.4 -verbose clean build I am getting the following build failed error: ** BUILD FAILED ** The following build commands failed: SwiftCompile normal x86_64 Compiling\ CursorInfo+Parsing.swift,\ Dictionary+Merge.swift,\ Documentation.swift,\ Exec.swift,\ File+Hashable.swift /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/CursorInfo+Parsing.swift /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/Dictionary+Merge.swift /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/Documentation.swift /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/Exec.swift /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/File+Hashable.swift (in target 'SourceKittenFramework' from project 'SourceKitten') SwiftCompile normal x86_64 /Users/localuser/Library/Developer/Xcode/DerivedData/my-app-bsbypltlaczdjfaivhtmmjutxmzf/SourcePackages/checkouts/SourceKitten/Source/SourceKittenFramework/Exec.swift (in target 'SourceKittenFramework' from project 'SourceKitten') Building the app with Xcode for the simulator works fine. Anyone an idea what's the issue here?
Posted
by
Post marked as solved
1 Replies
2.8k Views
Hi, I am developing a 'framework' for a client so they can embed some of my code into their own custom app. I'm confused a bit about the best option to distribute this. I have created an iOS 'framework' within my Xcode project and added all the necessary files there. Can I just build the framework and send them the build folder for the framework? Or is it better to generate an .xcframework that I read about somewhere? I'm just not completely sure about the benefits for distributing an .xcframework file (which there doesn't seem to be an option to generate from Xcode) over just the .framework folder from the built products? Thanks.
Posted
by
Post not yet marked as solved
2 Replies
863 Views
Hi friends, I have a problem suddenly by archiving my app in XCode 14.3 I'm getting this errors: Showing All Errors Only Prepare build note: Building targets in dependency order error: Multiple commands produce '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' note: Target 'GoogleUtilities-00567490' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' note: Target 'GoogleUtilities-54e75ca4' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' Multiple commands produce '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' I tried all the solutions that I found, nothing works for me :( please guide me how to fix this issue, thanks in advance!
Posted
by
Post not yet marked as solved
0 Replies
278 Views
Hello all! Trying to find any info about how to create iOS/MacOS application written with CMake/C++ within Network Extension. There are few questions: How to setup CMake project for correct application building with XCode? Is there any examples of it? Some of details about XCode part covered in this thread But there are nothing about settings for CMake.
Posted
by
Post not yet marked as solved
0 Replies
240 Views
I am currently facing a challenge in my iOS app development. I need to programmatically retrieve the status of the Auto Rotate setting in iOS, specifically the lock status of the Portrait Mode. Could you please provide guidance on how to obtain the lock status of the Portrait Mode programmatically in iOS? I want to adapt my app's behavior based on this information to ensure a seamless user experience. I would greatly appreciate any assistance, insights, or code snippets that can help me address this problem effectively. https://i.stack.imgur.com/D9AWh.jpg I expect to obtain the lock status of the Portrait Mode programmatically in iOS. The desired result would provide me with information on whether the Portrait Mode is currently locked or unlocked on the device. I am seeking guidance, suggestions, or sample code snippets that can help me retrieve this lock status effectively using Swift in my iOS app development.
Posted
by
Post not yet marked as solved
0 Replies
623 Views
Hi, I've tried multiple ways of solving this issue, including adding scripts, DISABLE Bitcode and non works. ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker." I am currently building a games with Unity, and trying to publish to test flight but no success at the moment. Non of the online solutions works on my side. Appreciate for your inputs, thanks in advance!
Posted
by
Post not yet marked as solved
0 Replies
1.8k Views
Hi, I try to compile our sorcecode which we formerly built on the same system after 3 month and I always get the same error when trying: Error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. Already tried: I tried everything in the description and what I could find in Forums, but I cannot get rid of this error. e.g. Podfile deintegrate, podfile clean, podfile install, deleting podfile.lock, cleaning the build folder, sudo gem install cocoapods and so on. React: We use react for programming because we need cross-platform. npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios sudo npm install -g n and so on. Additional Info: I use Xcode 14.2 (to not get any risk, did not change the version since last successful build.) and try to compile for iPhone 14 or iPhone 12 or generic, all produces the same error, Question: how can I solve the issue? Can you help understanding what the error is caused by, what exactly is meant by sandbox in this case and not in sync? Full message: Showing Recent Issues PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/(user)/Library/Developer/Xcode/DerivedData/AI_Coach_React_App-gsxbvzpyjczflhdlschivgmalhdw/Build/Intermediates.noindex/App.build/Release-iphonesimulator/AI_Coach_React_App.build/Script-1EBE9B5E0B137169D14EAFA5.sh (in target 'Coach_React_App' from project 'Coach_React_App') cd /Users/(user)/Documents/GitHub/(projectname)h/ios /bin/sh -c /Users/(user)/Library/Developer/Xcode/DerivedData/Coach_React_App-gsxbvzpyjczflhdlschivgmalhdw/Build/Intermediates.noindex/Coach_React_App.build/Release-iphonesimulator/Coach_React_App.build/Script-1EBE9B5E0B137169D14EAFA5.sh error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
Posted
by
Post not yet marked as solved
1 Replies
345 Views
I've been seriously considering a 14" MBP (coming from a 15" MBP) and am curious how well iOS/macOS development will work on a 14" screen. Has anyone worked with Xcode on a 14" MBP, or is it too small (especially with the simulator on screen?) Is there any way to move the SwiftUI preview window (and/or the simulator) to an external monitor?
Posted
by