Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

iPhone Doesn't Support App's Architectures (SwiftPM)
Hi, after recently upgrading Xcode to the latest version, I encountered a new bug that prevented me from building the app on my iPhone. Puzzlingly, the app still builds and runs fine on a simulator. Because I am working with a Swift Playground file, the option is not available to simply change the architecture setting. I found a similar setting within the Schemes, but after trying a combination of different architecture settings, the app still doesn't build properly. I noticed the BuildAction seemed to be changing, so I believe that the setting was properly affecting the Architecture setting. Even with a separate dummy test project (SwiftPM), I still ran into the same issues. I updated my iPhone OS to the latest version as well after initially encountering the bug. I'm wondering if anybody is running into the same issues, and if any solutions have been found.
3
0
143
Apr ’25
Reply to Duplicate apps launched when debugging in Xcode?
I have a command-line app experiencing this issue. It uses CVDisplayLink to render directly to a window through Metal. Apple recently deprecated CVDisplayLink and introduced a new recommended API, CAMetalDisplayLink. It has the same restrictions as CADisplayLink and prevents the user from having true low-level control over frame synchronization. The other apps mentioned with this bug rely on OpenGL and other frameworks, which likely delegate directly to CVDisplayLink. This might explain why a strange subset of all apps are affected by the bug. The solution for my use case, was to launch the app from swift run on command-line w/ SwiftPM, which is how it would run on non-Apple platforms as well. But my solution may not be the best for other people. Alternatively, you can add an intentional ≥350 ms delay upon app startup. The workaround sleep(1) worked because it introduced a 1000 ms delay, ~three times what is actually needed. https://github.com/philipturner/molecular-renderer/commit/655e367ef5a33218d7fc5654ded
Apr ’25
Reply to Debug Failed in Xcode Simulator
I experienced the same issue in my environment (XCode 16.2, Intel MBP, iOS Simulator). However after getting Couldn't find the Objective-C runtime library in loaded images at the first breakpoint, manually attaching the debugger allowed subsequent breakpoints to function properly. Therefore, I'm using the following workaround by running without a debugger and attaching manually: Product > Scheme > Edit Scheme... Choose Run from left pane. In the Info tab of right pane, uncheck Debug executable Run Application Debug > Attach to Process > (Choose Your Simulator from the top of the list) Since I've just started using this method, I can't guarantee it will always work, but it might be helpful for debugging except for the very initial startup phase.
Apr ’25
Reply to Summon gesture
Hi @cuo001 There are many ways to do this. Here's a snippet to get you started. It uses SpatialEventGesture and a hand AnchorEntity. When a person begins the pinch gesture, the code appends the entity to an anchor entity attached to the index finger, mantaining its world position, then animates the entity to a position near the index finger. When the pinch ends, the code appends the entity to its previous parent and animates the entity to its previous position. Create a custom component to store the state related to the custom interaction. struct SummonComponent: Component { let leftAnchor: AnchorEntity let rightAnchor: AnchorEntity var isHolding = false var parentEntity: Entity? var previousTransform: Transform? } Implement the interaction. struct ImmersiveView: View { @State var spatialTrackingSession = SpatialTrackingSession() var body: some View { RealityView { content in // Create the entity to summon. let box = ModelEntity(mesh: .generateBox(size: 0.15), materials: [SimpleMaterial(color: .red, isMetalli
Topic: Spatial Computing SubTopic: General Tags:
Apr ’25
Crashes with Rosetta after Sonoma update (crash reports).
Hello. We have an app and a custom dylib hat seems to be crashing only when Rosetta is involved. I believe it's the custom DYLIB that crashes. Here are some observations. The issue happens on the older 2022 built DYLIB (Intel only) And the newer DYLIB built (Universal) The universal DYLIB works fine natively on both Intel and M1 machines. It's only when we access it through an Intel only .app and it's running with Rosetta that we see the crash. The older Intel only .DYLIB worked perfectly with the same testing .app in versions before Sonoma, now they crash with the same .app, same build. Crash reports have been all over the place, they vary but repeat themselves. It has been a little confusing as to how to approach this issue and would appreciate any input that can help us understand what is going wrong and how to move forward. Crash reports are attached Crash Report 1 Crash Report 2 Crash Report 3 The crash occurs as SIGSEGV Version: 2.0 (1) Code Type: X86-64 (Translated) Parent Process: launchd [1]
1
0
146
Apr ’25
If UDP communication is used to obtain NTP, will it be approved by the Apple Store review?
There may be mistakes in the English translation. Please understand. I am developing a smartphone application using Unity and considering using a public NTP server to obtain the current time. During my research, I found an article stating that communications using UDP are blocked by Apple's review process. The article also mentioned that obtaining the time via HTTPS communication successfully passed Apple's review. If an app uses UDP communication to obtain the current time from NTP, will it fail the review process? When I built the app in Xcode and launched it, the current time obtained from NTP was displayed in the Xcode log, so I believe the communication is working properly. Below is the URL of the article I found. https://deep-verdure.hatenablog.com/entry/2020/05/06/050506
2
0
133
Apr ’25
custom-URL-handling method not being called
I've defined a URL scheme for my application, and that's being honored by iOS. But the function that's supposed to handle the URL in my appliation (as documented here) is never called. The documentation doesn't say exactly where this is supposed to go. I've tried it in my App struct: @main struct MyGreatApp: App { var body: some Scene { WindowGroup { MainView() } } // Handle custom URLs, specifically the ones sent in invitation E-mails or texts. func application(_ application: UIApplication, open theURL: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:] ) -> Bool { // Determine who sent the URL. let sendingAppID = options[.sourceApplication] print(source application = (sendingAppID ?? Unknown)) ... And I also tried putting this at the file level. No dice either way. Anybody have an idea why? To head off things I've seen in other posts: I'm not using scenes, and there's no SceneDelegate.
12
0
296
Apr ’25
Reply to Xcode 16.3 Compile fails
I also have a swift-front crash report (just generated from most recent build) Looks like a bad instruction UUID and GID of Xcode are: drwxr-xr-x@ 3 root wheel 96 Apr 14 17:41 Xcode.app ======================= Translated Report (Full Report Below) Process: swift-frontend [40082] Path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend Identifier: swift-frontend Version: ??? Code Type: ARM-64 (Native) Parent Process: SWBBuildService [36973] Responsible: Xcode [36823] User ID: 501 Date/Time: 2025-04-16 08:52:44.4410 +0300 OS Version: macOS 15.3.2 (24D81) Report Version: 12 Anonymous UUID: C92271A2-AA40-A7DF-CCE1-2FF9913E0809 Sleep/Wake UUID: 5A588A92-EF11-4C2B-B3FB-42AAF9E7FA83 Time Awake Since Boot: 53000 seconds Time Since Wake: 1161 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGILL) Exception Codes: KERN_PROTECTION_FAILURE at 0x000000016d5bbfe0 Exception Codes:
Apr ’25
Reply to LLDB RPC server crash in Xcode 16.3
I'm having this same issue. Most of the time, the program continues execution but the breakpoints won't pause the runtime (and will only show the crash error on the console log). This only happens to me on the iOS Simulator. If I run the same scheme to a physical iOS device, the breakpoints work. The issue happened randomly, while running Xcode 16.2. I tried moving back to Xcode 16.1 and trying Xcode 16.3, cleaning caches, reinstalling the iOS simulators, trying with other iOS simulator versions (18.1, 18, 18.5), reinstalling everything (even erasing the drive and reinstalling macOS) and the issue persists. On Xcode 16.3, the debugger stops on breakpoints, but it still shows an error in the console log. The debugger information is incomplete. Unfortunately, the debugger still won't stop and show the stack trace when I'm debugging a crash.
Apr ’25
iOS 18.2 Can't open X-Callback-URL from Safari Extension
I have a Safari Extension which replaces default new tab and puts a link on a generated new tab. This link can be either usual URL link, or a URL Scheme, something like plecoapi://x-callback-url/df?hw=${char}&sec=dict In iOS 17 and previosly, this link worked flawlessly. In iOS 18, including 18.2, this X-Callback-URL link works only once, if I kill Safari process, reopen Safari and tap the link. Each subsequent tap will just reload the page, link won't work anymore until the next Safari reload. Usual URL links works every time without a problem.
2
0
576
Jan ’25
I made a browser plugin to do something Apple should've done themselves.
This browser extension is a doc reading enhancer for the Apple Developer website. It supports i18n translation, hover link previews, and bilingual display. Currently, it supports four languages: ja-JP, ko-KR, zh-CN, and zh-TW. It works with Swift/SwiftUI/Foundation modules now, and it's expected to support Swift Test, Swift Charts, UIKit, Swift Playground, and XCode modules by the end of this month. For more info, check out: https://appledocs.dev. You can also visit https://appledocs.dev/progress to see translation progress and vote. Note: It's only works on Chrome、Edge(In review)、Firefox(In review) Screenshot:
1
0
258
Apr ’25
My account "Pending Termination Notice"
I have developed several apps out of interest, and if everyone likes my app, I plan to truly become an independent developer. I used a name and icon similar to the existing app in the hope of gaining more app exposure. The App Store reviewer found an issue and gave me a 'Pending Termination Notice'. My account will be deleted within 30 days. I finally realized that this was an extremely foolish practice that undermined my integrity. After receiving the notification, I immediately responded through the appeal channel and admitted my mistake. I have already removed my app from App Store Connect, even though it hasn't been officially launched yet. I am determined not to make similar mistakes again and to become an excellent independent developer. There is another question that I am quite puzzled about. My application is considered to be: “Evidence of Dishonest or Fraudulent Activity App submissions from your account have engaged in concept or feature switch schemes to evade the review process, such as d
3
0
1.4k
Apr ’25
Github CI UITest gives flaky tests 'Unable to monitor event loop'
I am running my UI Tests on Github CI and the tests are flaky. I don't understand how I can fix it. The animations are disabled and I am running the tests on a iPhone 13 plus. A lot of tests are running green, but some are not working. Locally, I got everything working. These are some logs: 2022-06-21T13:42:23.2627250Z t = 63.34s Tap Cell 2022-06-21T13:42:23.2707530Z t = 63.34s Wait for com.project.project to idle 2022-06-21T13:42:23.2733620Z t = 63.41s Unable to monitor event loop 2022-06-21T13:42:23.2734250Z t = 63.41s Unable to monitor animations 2022-06-21T13:42:23.2734800Z t = 63.42s Find the Cell 2022-06-21T13:42:24.1158670Z t = 64.45s Find the Cell (retry 1) 2022-06-21T13:42:24.1287900Z t = 64.45s Collecting extra data to assist test failure triage 2022-06-21T13:42:24.2022460Z /Users/runner/work/project/UITestCase.swift:665: error: -[project.UserTagTest testTapInTextView] : Failed to get matching snapshot: Lost connection to the application (pid 12676). (Underlying Error: Couldn’t communicate with a he
1
0
1.1k
Jun ’22
Reply to Getting a public service app not to send scary messages
The warning just says it is an app downloaded from the internet and do you want to proceed. The app was built in C# in VS Code. That directly translates to XCode, does it not? I want the best user experience possible. I can make an app, sign it, make a dmg, sign it and notarize it. I can make a dmg and sign and notarize it. Which is the best?
Topic: Code Signing SubTopic: General
Apr ’25
Reply to Calling from Watchos
I believe the behavior is as-designed, as mentioned here: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number. The doc isn't up to date, but I don't think the behavior has changed since then. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
Apr ’25
iPhone Doesn't Support App's Architectures (SwiftPM)
Hi, after recently upgrading Xcode to the latest version, I encountered a new bug that prevented me from building the app on my iPhone. Puzzlingly, the app still builds and runs fine on a simulator. Because I am working with a Swift Playground file, the option is not available to simply change the architecture setting. I found a similar setting within the Schemes, but after trying a combination of different architecture settings, the app still doesn't build properly. I noticed the BuildAction seemed to be changing, so I believe that the setting was properly affecting the Architecture setting. Even with a separate dummy test project (SwiftPM), I still ran into the same issues. I updated my iPhone OS to the latest version as well after initially encountering the bug. I'm wondering if anybody is running into the same issues, and if any solutions have been found.
Replies
3
Boosts
0
Views
143
Activity
Apr ’25
Reply to Duplicate apps launched when debugging in Xcode?
I have a command-line app experiencing this issue. It uses CVDisplayLink to render directly to a window through Metal. Apple recently deprecated CVDisplayLink and introduced a new recommended API, CAMetalDisplayLink. It has the same restrictions as CADisplayLink and prevents the user from having true low-level control over frame synchronization. The other apps mentioned with this bug rely on OpenGL and other frameworks, which likely delegate directly to CVDisplayLink. This might explain why a strange subset of all apps are affected by the bug. The solution for my use case, was to launch the app from swift run on command-line w/ SwiftPM, which is how it would run on non-Apple platforms as well. But my solution may not be the best for other people. Alternatively, you can add an intentional ≥350 ms delay upon app startup. The workaround sleep(1) worked because it introduced a 1000 ms delay, ~three times what is actually needed. https://github.com/philipturner/molecular-renderer/commit/655e367ef5a33218d7fc5654ded
Replies
Boosts
Views
Activity
Apr ’25
Reply to Debug Failed in Xcode Simulator
I experienced the same issue in my environment (XCode 16.2, Intel MBP, iOS Simulator). However after getting Couldn't find the Objective-C runtime library in loaded images at the first breakpoint, manually attaching the debugger allowed subsequent breakpoints to function properly. Therefore, I'm using the following workaround by running without a debugger and attaching manually: Product > Scheme > Edit Scheme... Choose Run from left pane. In the Info tab of right pane, uncheck Debug executable Run Application Debug > Attach to Process > (Choose Your Simulator from the top of the list) Since I've just started using this method, I can't guarantee it will always work, but it might be helpful for debugging except for the very initial startup phase.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Summon gesture
Hi @cuo001 There are many ways to do this. Here's a snippet to get you started. It uses SpatialEventGesture and a hand AnchorEntity. When a person begins the pinch gesture, the code appends the entity to an anchor entity attached to the index finger, mantaining its world position, then animates the entity to a position near the index finger. When the pinch ends, the code appends the entity to its previous parent and animates the entity to its previous position. Create a custom component to store the state related to the custom interaction. struct SummonComponent: Component { let leftAnchor: AnchorEntity let rightAnchor: AnchorEntity var isHolding = false var parentEntity: Entity? var previousTransform: Transform? } Implement the interaction. struct ImmersiveView: View { @State var spatialTrackingSession = SpatialTrackingSession() var body: some View { RealityView { content in // Create the entity to summon. let box = ModelEntity(mesh: .generateBox(size: 0.15), materials: [SimpleMaterial(color: .red, isMetalli
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Crashes with Rosetta after Sonoma update (crash reports).
Hello. We have an app and a custom dylib hat seems to be crashing only when Rosetta is involved. I believe it's the custom DYLIB that crashes. Here are some observations. The issue happens on the older 2022 built DYLIB (Intel only) And the newer DYLIB built (Universal) The universal DYLIB works fine natively on both Intel and M1 machines. It's only when we access it through an Intel only .app and it's running with Rosetta that we see the crash. The older Intel only .DYLIB worked perfectly with the same testing .app in versions before Sonoma, now they crash with the same .app, same build. Crash reports have been all over the place, they vary but repeat themselves. It has been a little confusing as to how to approach this issue and would appreciate any input that can help us understand what is going wrong and how to move forward. Crash reports are attached Crash Report 1 Crash Report 2 Crash Report 3 The crash occurs as SIGSEGV Version: 2.0 (1) Code Type: X86-64 (Translated) Parent Process: launchd [1]
Replies
1
Boosts
0
Views
146
Activity
Apr ’25
If UDP communication is used to obtain NTP, will it be approved by the Apple Store review?
There may be mistakes in the English translation. Please understand. I am developing a smartphone application using Unity and considering using a public NTP server to obtain the current time. During my research, I found an article stating that communications using UDP are blocked by Apple's review process. The article also mentioned that obtaining the time via HTTPS communication successfully passed Apple's review. If an app uses UDP communication to obtain the current time from NTP, will it fail the review process? When I built the app in Xcode and launched it, the current time obtained from NTP was displayed in the Xcode log, so I believe the communication is working properly. Below is the URL of the article I found. https://deep-verdure.hatenablog.com/entry/2020/05/06/050506
Replies
2
Boosts
0
Views
133
Activity
Apr ’25
custom-URL-handling method not being called
I've defined a URL scheme for my application, and that's being honored by iOS. But the function that's supposed to handle the URL in my appliation (as documented here) is never called. The documentation doesn't say exactly where this is supposed to go. I've tried it in my App struct: @main struct MyGreatApp: App { var body: some Scene { WindowGroup { MainView() } } // Handle custom URLs, specifically the ones sent in invitation E-mails or texts. func application(_ application: UIApplication, open theURL: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:] ) -> Bool { // Determine who sent the URL. let sendingAppID = options[.sourceApplication] print(source application = (sendingAppID ?? Unknown)) ... And I also tried putting this at the file level. No dice either way. Anybody have an idea why? To head off things I've seen in other posts: I'm not using scenes, and there's no SceneDelegate.
Replies
12
Boosts
0
Views
296
Activity
Apr ’25
Reply to Xcode 16.3 Compile fails
I also have a swift-front crash report (just generated from most recent build) Looks like a bad instruction UUID and GID of Xcode are: drwxr-xr-x@ 3 root wheel 96 Apr 14 17:41 Xcode.app ======================= Translated Report (Full Report Below) Process: swift-frontend [40082] Path: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend Identifier: swift-frontend Version: ??? Code Type: ARM-64 (Native) Parent Process: SWBBuildService [36973] Responsible: Xcode [36823] User ID: 501 Date/Time: 2025-04-16 08:52:44.4410 +0300 OS Version: macOS 15.3.2 (24D81) Report Version: 12 Anonymous UUID: C92271A2-AA40-A7DF-CCE1-2FF9913E0809 Sleep/Wake UUID: 5A588A92-EF11-4C2B-B3FB-42AAF9E7FA83 Time Awake Since Boot: 53000 seconds Time Since Wake: 1161 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGILL) Exception Codes: KERN_PROTECTION_FAILURE at 0x000000016d5bbfe0 Exception Codes:
Replies
Boosts
Views
Activity
Apr ’25
Reply to LLDB RPC server crash in Xcode 16.3
I'm having this same issue. Most of the time, the program continues execution but the breakpoints won't pause the runtime (and will only show the crash error on the console log). This only happens to me on the iOS Simulator. If I run the same scheme to a physical iOS device, the breakpoints work. The issue happened randomly, while running Xcode 16.2. I tried moving back to Xcode 16.1 and trying Xcode 16.3, cleaning caches, reinstalling the iOS simulators, trying with other iOS simulator versions (18.1, 18, 18.5), reinstalling everything (even erasing the drive and reinstalling macOS) and the issue persists. On Xcode 16.3, the debugger stops on breakpoints, but it still shows an error in the console log. The debugger information is incomplete. Unfortunately, the debugger still won't stop and show the stack trace when I'm debugging a crash.
Replies
Boosts
Views
Activity
Apr ’25
iOS 18.2 Can't open X-Callback-URL from Safari Extension
I have a Safari Extension which replaces default new tab and puts a link on a generated new tab. This link can be either usual URL link, or a URL Scheme, something like plecoapi://x-callback-url/df?hw=${char}&sec=dict In iOS 17 and previosly, this link worked flawlessly. In iOS 18, including 18.2, this X-Callback-URL link works only once, if I kill Safari process, reopen Safari and tap the link. Each subsequent tap will just reload the page, link won't work anymore until the next Safari reload. Usual URL links works every time without a problem.
Replies
2
Boosts
0
Views
576
Activity
Jan ’25
I made a browser plugin to do something Apple should've done themselves.
This browser extension is a doc reading enhancer for the Apple Developer website. It supports i18n translation, hover link previews, and bilingual display. Currently, it supports four languages: ja-JP, ko-KR, zh-CN, and zh-TW. It works with Swift/SwiftUI/Foundation modules now, and it's expected to support Swift Test, Swift Charts, UIKit, Swift Playground, and XCode modules by the end of this month. For more info, check out: https://appledocs.dev. You can also visit https://appledocs.dev/progress to see translation progress and vote. Note: It's only works on Chrome、Edge(In review)、Firefox(In review) Screenshot:
Replies
1
Boosts
0
Views
258
Activity
Apr ’25
My account "Pending Termination Notice"
I have developed several apps out of interest, and if everyone likes my app, I plan to truly become an independent developer. I used a name and icon similar to the existing app in the hope of gaining more app exposure. The App Store reviewer found an issue and gave me a 'Pending Termination Notice'. My account will be deleted within 30 days. I finally realized that this was an extremely foolish practice that undermined my integrity. After receiving the notification, I immediately responded through the appeal channel and admitted my mistake. I have already removed my app from App Store Connect, even though it hasn't been officially launched yet. I am determined not to make similar mistakes again and to become an excellent independent developer. There is another question that I am quite puzzled about. My application is considered to be: “Evidence of Dishonest or Fraudulent Activity App submissions from your account have engaged in concept or feature switch schemes to evade the review process, such as d
Replies
3
Boosts
0
Views
1.4k
Activity
Apr ’25
Github CI UITest gives flaky tests 'Unable to monitor event loop'
I am running my UI Tests on Github CI and the tests are flaky. I don't understand how I can fix it. The animations are disabled and I am running the tests on a iPhone 13 plus. A lot of tests are running green, but some are not working. Locally, I got everything working. These are some logs: 2022-06-21T13:42:23.2627250Z t = 63.34s Tap Cell 2022-06-21T13:42:23.2707530Z t = 63.34s Wait for com.project.project to idle 2022-06-21T13:42:23.2733620Z t = 63.41s Unable to monitor event loop 2022-06-21T13:42:23.2734250Z t = 63.41s Unable to monitor animations 2022-06-21T13:42:23.2734800Z t = 63.42s Find the Cell 2022-06-21T13:42:24.1158670Z t = 64.45s Find the Cell (retry 1) 2022-06-21T13:42:24.1287900Z t = 64.45s Collecting extra data to assist test failure triage 2022-06-21T13:42:24.2022460Z /Users/runner/work/project/UITestCase.swift:665: error: -[project.UserTagTest testTapInTextView] : Failed to get matching snapshot: Lost connection to the application (pid 12676). (Underlying Error: Couldn’t communicate with a he
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’22
Reply to Getting a public service app not to send scary messages
The warning just says it is an app downloaded from the internet and do you want to proceed. The app was built in C# in VS Code. That directly translates to XCode, does it not? I want the best user experience possible. I can make an app, sign it, make a dmg, sign it and notarize it. I can make a dmg and sign and notarize it. Which is the best?
Topic: Code Signing SubTopic: General
Replies
Boosts
Views
Activity
Apr ’25
Reply to Calling from Watchos
I believe the behavior is as-designed, as mentioned here: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone app supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone app does not attempt to dial the corresponding phone number. The doc isn't up to date, but I don't think the behavior has changed since then. Best, —— Ziqiao Chen  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25