Post not yet marked as solved
I want to create a macOS application that runs Python script locally. As now I found that using 'PythonKit' library and disabling Sandbox allow me to do that, but disabling sandbox makes the app can't be published.
Any idea how I can solve this problem?
Thanks
Post not yet marked as solved
I have a combined iOS + WatchOS app that has worked fine on iOS 16 and WatchOS 9, but on iOS17 / WatchOS 10 I have location permission issues.
As you can tell from the previous sentence, all plist entries are set and asking for location updates when the app is in foreground worked fine on the watch on WatchOS 9, however since switching to Xcode 15 things have stopped working.
What happens now is:
I call locationManager.requestWhenInUseAuthorization() on the watch, which doesn't do anything. I do not get the popup asking for location permissions and none of the delegate methods are called on locationManager.
However as soon as I do the same call on my iOS app I get the popup on my phone and immediately the delegate is called in my watch app. So right now the only way of getting location permissions from the user is inside the iOS app, not the watch app.
Has anyone else encountered this? Is there a solution?
Post not yet marked as solved
One of my users' device (iOS 17.0) consistently fails to refresh the purchase receipt through SKReceiptRefreshRequest, resulting in the following error (ASDServerErrorDomain Code=500332).
Error Domain=SKErrorDomain Code=0 "发生未知错误" UserInfo={NSLocalizedDescription=发生未知错误, NSUnderlyingError=0x28357f300 {Error Domain=ASDServerErrorDomain Code=500332 "Unhandled exception" UserInfo={NSLocalizedDescription=Unhandled exception, NSLocalizedFailureReason=An unknown error occurred}}}
The user has tried checking their App Store account, restarting the device, etc., but none of these actions have helped.
Does anyone know what might be causing this issue?
Post not yet marked as solved
Under watchOS10, seems like Apple Watch always uses watch GPS and cannot use iPhone's GPS, previously developer somehow can use either Apple Watch or iPhone's GPS, when iPhone is around the Watch and if developer choose to use iPhone's GPS, then iPhone's GPS will be used in watch app. However, watchOS10 behavior is different where Watch's GPS is always used. Is it the new behavior for watchOS10 ?
Post not yet marked as solved
Dear anyone, especially for Apple Teams, we produce an issues when re-testing our app using sandbox environment.
When purchasing an in-app-purchase subscription process completed, an error show up like below.
<SKPaymentQueue: 0x2837755c0>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x283ad66d0 {Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?REDACTED, AMSStatusCode=500, NSLocalizedFailureReason=The response has an invalid status code}}, storefront-country-code=IDN, client-environment-type=Sandbox}
Please any help, thankyou.
Post not yet marked as solved
If I learn all in https://developer.apple.com/visionos/planning/, can I master all the knowledge in visionOS development?
Post not yet marked as solved
I updated MacOs to Sonoma and Xcode to 15 but when I want to preview some SwiftUI view, my project crashes. Some views don't crash but the others do.
It started when I updated Xcode and my Mac.
I also receive an error message,
ld: warning: ignoring duplicate libraries: '-lc++'
Please help, very confused.
Thanks
Post not yet marked as solved
I have a Mac OS virtual machine (VM) on my Macbook Pro with M1 Pro chip. The VM was set up using Xcode and Apple's sample code in https://developer.apple.com/documentation/virtualization. Both the host and the VM have Mac OS 14. The mouse and trackpad scroll direction is reverse to what I am used to so I need to change the natural scroll setting. However mouse and trackpad settings are missing in my VM. Usually, they are under Keyboard (host has them).
The pointing device was set up using the default in the sample code:
static func createPointingDeviceConfiguration() -> VZPointingDeviceConfiguration {
return VZMacTrackpadConfiguration()
}
I have been using this setup before without a problem. But now I am not able to change the scroll direction. Does anyone know what is going on? Any suggestion will be appreciated.
Post not yet marked as solved
Our TestFlight request has been rejected bucause a reviewer could not signin with Cognito HostedUI.
We have activated AWS Cognito Advanced Security, and the reviewer's signin trial was detected as a high-risk activity. The Cognito user account which the reviewer used had valid email and password. So I guess the reviewer tries some common bad signin evaluations.
How can we pass the review? The reviewer could not provide us IP information, so we cannot exclude their IP. In addition, the Advanced Security should be active due to security requirements. I believe Cognito and its Advanced Security is common and others used them like us.
Post not yet marked as solved
My C++ SFML program stopped working after I upgraded to Xcode 15.
This is the error message I received:
dyld[1271]: Library not loaded: @rpath/sfml-system.framework/Versions/2.5.1/sfml-system
Referenced from: <513EFE40-324B-3698-90F1-B1745A923EE9> /Users/glennsilverstone/Library/Developer/Xcode/DerivedData/Computer_Simulation_Part_A_Stage_2-gflpuzzcrbxlhsgqypwfzyighzkj/Build/Products/Debug/Terminal.app/Contents/MacOS/Terminal
Reason: tried: '/Users/glennsilverstone/Library/Developer/Xcode/DerivedData/Computer_Simulation_Part_A_Stage_2-gflpuzzcrbxlhsgqypwfzyighzkj/Build/Products/Debug/sfml-system.framework/Versions/2.5.1/sfml-system' (no such file), '/Users/glennsilverstone/Library/Developer/Xcode/DerivedData/Computer_Simulation_Part_A_Stage_2-gflpuzzcrbxlhsgqypwfzyighzkj/Build/Products/Debug/Terminal.app/Contents/MacOS/../Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system' (no such file), '/Users/glennsilverstone/Library/Developer/Xcode/DerivedData/Computer_Simulation_Part_A_Stage_2-gflpuzzcrbxlhsgqypwfzyighzkj/Build/Products/Debug/Terminal.app/Contents/MacOS/../Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system' (no such file)
Message from debugger: Terminated due to signal 6
Would anyone know how to solve this problem?
Post not yet marked as solved
Hello, safari consumes less CPU than Chrome, but it does not consume less RAM. When you access YouTube in Safari, especially when you skip 5 seconds while watching a video, the buttons are very inadequate compared to Chrome. The video and audio lag, the loading sign appears and the audio lag is very annoying. At the same time, when I log into Twitter, some videos do not play but remain loading. While browsing the web in Safari, the mouse sometimes remains stuck. While typing, the mouse becomes a line, but when I hover over something to click, it still remains as a line. There are such bugs. I like to use Safari, it is very useful, but I always prefer to stay in Chrome because of such errors. I try it every time Apple updates Safari, most bugs go away, but new ones come and unfortunately the Youtube problem is very bad. This problem only occurs on YouTube, not on Netflix and similar platforms. Browsing YouTube with Safari is very annoying. I hope you find a solution to these problems soon. Since I deal with CDN and Linux servers, the web is very important to me and I like the safari web tool part, but it is not an immersive view. It gives the impression that I shouldn't have opened it. I hope a new design language will be added to this design. Other than that, using safari is nice and I love how minimalist it is. Thank you, I wish you good work.
Post not yet marked as solved
We have a method that extracts 1-second video image thumbnails using an AVAssetImageGenerator.
After updating our devices to iOS/iPadOS 17, both the generateCGImagesAsynchronously(forTimes:completionHandler:) and async images(for:) methods take considerably longer than previous versions of iOS/iPadOS to asynchronously return images.
Running the code below on various devices with a 10 minute test video returned the following results:
iOS / iPadOS 16.7
iPhone 13 Pro Max - 601 images extracted in 7.31719 seconds.
iPad Pro (11-inch) (3rd generation) - 601 images extracted in 7.34210 seconds.
iOS / iPadOS 17.0.2
iPhone 15 Pro Max - 601 images extracted in 22.80841 seconds.
iPad mini (6th generation) - 601 images extracted in 26.94888 seconds.
iOS 17.1 Beta
iPhone Xs Max - 601 images extracted in 38.74796 seconds.
(The iPhone Xs Max was returning only slighter better times when running iOS 17.0.2)
Has anyone else experienced this issue when running on iOS 17?
Task {
let path = Bundle.main.path(forResource: "10min_60fps", ofType: "mp4")!
let url = URL(filePath: path)
let asset = AVAsset(url: url)
let numFrames = Int(ceil(asset.duration.seconds))
let times = (0..<numFrames).map { CMTime(value: CMTimeValue($0 * 1000), timescale: 1000) } // 1 fps
let generator = AVAssetImageGenerator(asset: asset)
generator.requestedTimeToleranceBefore = .zero
generator.requestedTimeToleranceAfter = .zero
generator.appliesPreferredTrackTransform = true
generator.maximumSize = CGSize(width: 160 * 4, height: 90 * 4)
var images = generator.images(for: times)
var count = 0
let start = Date()
while await images.next() != nil {
count += 1
}
let duration = Date().timeIntervalSince(start)
let seconds = String(format: "%.5f", duration)
print("\(count) images extracted in \(seconds) seconds.")
}
Post not yet marked as solved
Xcode complains that Model3D is not in scope despite that RealityKit is imported.
I have tried with Xcode 15 & beta 8 in vain.
How can I resolve this issue?
import SwiftUI
import RealityKit
struct ContentView: View {
var body: some View {
Model3D(named: "Robot-Drummer") { model in
model
.resizable()
.aspectRatio(contentMode: .fit)
} placeholder: {
ProgressView()
}
}
}
Post not yet marked as solved
Hi,
Recently, I have changed the price of an auto-renewable subscription. At that time, I made sure that existing subscribers maintain the previous price.
The issue is that product.displayPrice in StoreKit2 returns the new price even for those users who were able to maintain the old price.
Is there a way to retrieve the previous (actually applied to the user) price using StoreKit2?
Thank you.
Post not yet marked as solved
If I switch from objective c to objective c++ interoperability in Xcode 15, I'm getting errors when trying to use NSEvent.ModifierFlags ("Expected a type").
I can't seem to find a workaround.
https://forums.swift.org/t/expected-a-type-error-on-appkit-nsevent-modifierflags-enum/67557
Post not yet marked as solved
Our accessibility users are using Apple's Voice Control feature: https://support.apple.com/en-us/HT210417
Voice Control does not work with bluetooth devices. It doesn't seem to be natively supported by Apple and only the iOS device's microphone works. Airpods, Bose Headphones and Jabra BT devices do NOT work.
Is there a way to get our application to run with Bluetooth devices? The current experience doesn't work with our accessibility users as they physically are unable to move closer to the device so bluetooth headphones are critical for their user experience to work correctly.
Post not yet marked as solved
Our users are using Apple's native Voice Control feature: https://support.apple.com/en-us/HT210417
We want to enhance our accessibility experience by adding some additional voice controlled dialogs that show up specifically when Voice Control is enabled.
It can be determined if other Apple accessibility features are turned on via a check like UIAccessibility.isVoiceOverRunning, however there is no option for Voice Control (note, different than Voice Over).
How can I detect if a user is running Voice Control or not?
Post not yet marked as solved
My build (of an Unreal Engine project) worked fine in Xcode 14, but in 15 I get errors like these:
/Users/zeev/dev/UnrealEngine3/Engine/Source/Runtime/Core/Public/Templates/IsTriviallyCopyConstructible.h:13:17: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Werror,-Wdeprecated-builtins]
/Users/zeev/dev/UnrealEngine3/Engine/Source/Runtime/Core/Public/Templates/IsTriviallyDestructible.h:18:18: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Werror,-Wdeprecated-builtins]
/Users/zeev/dev/UnrealEngine3/Engine/Source/Runtime/Core/Public/Templates/IsTriviallyCopyAssignable.h:13:17: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
Do I have to edit these hundreds of lines of code, or can I use an older compiler, or is there some other solution?
Post not yet marked as solved
I have enabled “StrictConcurrency” warnings in my project that uses SwiftUI. I have a Commands struct. It has a Button, whose action is calling an async method via Task{}. This builds without warnings within Views, but not Commands. There the compiler reports “Main actor-isolated property 'body' cannot be used to satisfy nonisolated protocol requirement”.
Looking at SwiftUI:
In View, body is declared @MainActor:
@ViewBuilder @MainActor var body: Self.Body { get }
In Commands, body is not declared @MainActor:
@CommandsBuilder var body: Self.Body { get }
So the common practice of making a Button action asynchronous:
Button {
Task { await model.load() }
} label:{
Text("Async Button")
}
will succeed without warnings in Views, but not in Commands. Is this intentional? I've filed FB13212559. Thank you.
Post not yet marked as solved
Anyone experiencing the same problem? I cannot download the new wallpapers that comes with MacOs Sonoma. Tried to wait for 15-20 mins but the download doesn't progress at all. This is the same for all photos and videos. Frustrating...