Developer Tools

RSS for tag

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

Developer Tools Documentation

Posts under Developer Tools tag

328 Posts
Sort by:
Post not yet marked as solved
3 Replies
2.4k Views
Failed to decode landmarksData.json from bundle because it appears to be invalid JSON. Full disclosure - Im extremely new to this and am playing around with the swift tutorials to see what it can do and see if I could build an app. Any advice is appreciated. I added a few locations to the SwiftUI Tutorial for Lanmarks and this is what happened. I have checked that JSON file and all commas are in the correct place everything is correct but im getting this error. Not sure what im doing incorrectly. Can anyone give me assistance on how to fix this. I can only preview favorite button, circle image and map. Everything else appears as Fatal Error in ModelData.
Posted
by
Post not yet marked as solved
1 Replies
619 Views
root# malloc_history /tmp/stack-logs.60147.10f5f7000.agent-tests.0EDkOu.index -callTree malloc_history[60193]: [fatal] unable to read input graph: The data couldn’t be read because it isn’t in the correct format. I ran my program as root# env MallocDebugReport=stderr MallocGuardEdges=1 MallocStackLogging=1 MallocStackLoggingNoCompact=1 MallocScribble=1 MallocErrorAbort=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib ./test/agent-test (The program then segfaults, which looks to be due to a memory stomper.)
Posted
by
Post marked as solved
3 Replies
1.7k Views
Hello, This is my first year to renew apple developer program but I don't know how to do from Macbook Air laptop. As I don't have latest iphone and ipad devices. So Can I renew my Apple Developer Program from Macbook Air? And Can I pay from my Credit Card? I am from INDIA and I can't see Credit Card option to renewal. For more information I attached screenshots. I already contacted to Apple Support and they not allow to renew account from laptop/desktop. Except iPhone and iPads. So can anybody help me? Thank you!
Posted
by
Post marked as solved
35 Replies
57k 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
14k 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
696 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
6.8k 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
1.9k 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
3 Replies
1.8k 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
671 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.7k 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
1 Replies
510 Views
I am in peril. Can anyone save me. I am desperate! I am using Xcode Version 14.2 (14C18). I created a fresh new library project (plain C/C++) and added the well-known SQLite3.h and SQLite3.c. When I build debug configuration, Xcode correctly produces dylib. But when I do archive build, the generated xcarchive is almost empty - it does not have expected libsqlite3s.dylib! I even went back to Xcode 7.2.1 on macOS 10.10. Xcode 7.2.1 can correctly produce archived dylib and I can link the dylib with a test app. I am extremely frustrated!
Posted
by
Post not yet marked as solved
3 Replies
564 Views
Hello! I have problem with ContentView.swift. In Canvas preview I have an error: Failed to build ContentView.swift. Xcode doesn't show an error messages in my code. How to fix this problem? My code in Content View import SwiftUI struct ContentView: View { @State private var login = "" @State private var password = "" var body: some View { VStack { TextField ("Логин", text : $login) .textFieldStyle(RoundedBorderTextFieldStyle()) .padding() SecureField("Пароль",text : $password) .textFieldStyle(RoundedBorderTextFieldStyle()) .padding() Button(action: loginButtonTapped) { Text("Войти") .foregroundColor(.white) .padding() .frame(maxWidth: .infinity) .background(Color.blue) .cornerRadius(5) } .padding() } .padding() } func loginButtonTapped() { // Handle login logic here } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } ![]("https://developer.apple.com/forums/content/attachment/927e8aac-a3e0-4dae-8939-6a82cd77a4ff" "title=Снимок экрана 2023-04-28 в 20.55.06.png;width=3024;height=1964")
Posted
by
Post not yet marked as solved
1 Replies
971 Views
As title says, my apps crashing right on launch when testing through Xcode. I haven't been able to find any meaningful error logs. I get 0 errors or warnings in react native expo env. I even tried with debugging tools in expo with chrome and no memory issues or anything out of the ordinary. Here is my recent logs from the crash: Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: 0 CoreFoundation 0x1af6a2d94 __exceptionPreprocess + 164 1 libobjc.A.dylib 0x1a87583d0 objc_exception_throw + 60 2 sarcasticgpttwo 0x10283ec9c 0x1027ec000 + 339100 3 sarcasticgpttwo 0x1028502b8 0x1027ec000 + 410296 4 sarcasticgpttwo 0x10284fb00 0x1027ec000 + 408320 5 libdispatch.dylib 0x1b6b60320 _dispatch_call_block_and_release + 32 6 libdispatch.dylib 0x1b6b61eac _dispatch_client_callout + 20 7 libdispatch.dylib 0x1b6b69534 _dispatch_lane_serial_drain + 668 8 libdispatch.dylib 0x1b6b6a0a4 _dispatch_lane_invoke + 384 9 libdispatch.dylib 0x1b6b74cdc _dispatch_workloop_worker_thread + 648 10 libsystem_pthread.dylib 0x20f023ddc _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x20f023b7c start_wqthread + 8 `` Chat-GPT gave me the following: The crash log suggests that the app is crashing due to an unhandled exception. The stack trace indicates that the app crashed in the main thread, while executing a block of code that was dispatched to the main thread using Grand Central Dispatch (GCD). The stack trace also shows that the crash was triggered by Thread 1, which is the Expo controller error recovery queue. Here's a brief breakdown of the relevant parts of the crash log: Exception Type: EXC_CRASH (SIGABRT) Triggered by Thread: 1 Application Specific Information: abort() called Last Exception Backtrace: CoreFoundation libobjc.A.dylib sarcasticgpttwo libdispatch.dylib Based on the information provided, it's difficult to determine the exact cause of the crash.
Posted
by
Post marked as solved
3 Replies
1.3k Views
I'm developing a SwiftUI app and have implemented app icon switching. I walk the list of CFBundleAlternateIcons from the main bundle's CFBundleIcons key at runtime to display the list of options the user can select from. All is well when running on iOS (device or simulator). However, none of the alternate icons are available when running on iPadOS (device or simulator). The project is set up with Include all app icon assets checked on the app target, and all the icon sets are in the main asset catalog and are configured as Single Size for iOS. Based on some old StackOverflow posts I've also tried switching them to All Sizes and explicitly adding images for each variant, to no avail. Just in case, I also toggled Include All App Icon Assets to Yes the project level, which had no effect. The project and app target are set with a deployment target of iOS 16.0. Using xcrun --sdk iphoneos assetutil --info on the iPad build's Assets.car file shows the relevant entries for the icon files. For example: { "AssetType" : "MultiSized Image", "Idiom" : "pad", "Name" : "BlackIcon", "NameIdentifier" : 25144, "Scale" : 1, "SHA1Digest" : "3ADDEA1FD56367BF89B8931F5D01A583F6D8C6D47EAAB8F4BB5E7FE61D7D9596", "SizeOnDisk" : 236, "Sizes" : [ "1024x1024 index:0 idiom:pad" ] } And inspecting the .car file with Asset Catalog Tinkerer shows that the various alternate icon images are indeed present. And yet, CFBundleAlternateIcons is nil when accessing the main bundle when running the app on iPadOS. Even attempting to just directly set one of the alternate icons by name results in the error UserInfo={_LSLine=198, NSUnderlyingError=0x60000290e400 {Error Domain=LSApplicationWorkspaceErrorDomain Code=-105 "iconName not found in CFBundleAlternateIcons entry" UserInfo={_LSLine=186, NSLocalizedDescription=iconName not found in CFBundleAlternateIcons entry, _LSFunction=-[LSAltIconManager _setAlternateIconName:forIdentifier:withIconsDictionary:error:]}}, _LSFunction=-[LSAltIconManager _setAlternateIconName:forIdentifier:withIconsDictionary:error:]} The file doesn’t exist. I tried to replicate the behaviour with a new project, even using the same source image files as in my project's icon sets, and everything worked as one would expect on iPadOS. So I'm left to wonder if there's something awry in my project file ... maybe. I'm at a loss for what to try/check at this point. Using Xcode 14.3 (14E222b).
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