Post

Replies

Boosts

Views

Activity

Reply to Value of [NSTimeZone localTimeZone] differs between iOS10 and iOS11 GM
With Xcode 12.3 and iOS 14.3, the TZ environment variable seems to work only the first time after you erase settings & content on the Simulator - after that, if you run a different scheme with a different TZ value, it "sticks" to the first value you used. So it works, but if you have a scheme per country, let's say, then you will have to restart the simulator to correctly simulate a new country. Would sure be nice if it worked properly.
Jan ’21
Reply to Critical App Transfer problems
I've been going through this, trying to move an app from a corporate account to a personal account. Could not transfer because it used CloudKit. First try was to just build the app on the new account - Apple rejected it as spam, probably because they figured out it was similar to the app on the corp account. DTS said basically to delete the old app, then quickly grab the name for the new one. For now, I've built a "premium" version of the app without CloudKit on the corp account, will try to migrate users there, then transfer that new app. I'll be back to let you know how it goes.
Mar ’22
Reply to Xcode 15 beta 7 Previews building issue
I experienced this issue a couple of days ago. The message about "CoreAudioTypes" is completely misleading. In my case, the cause was that while removing some old code I had accidentally deleted a class that was still required. However, the only message that popped up when building was about "CoreAudioTypes" - when I restored the missing class, the message went away and the app built successfully. You can try hunting around in the build logs for more detail when you see this. Bottom line: When you see "CoreAudioTypes" it's almost certainly a red herring - you've messed up something else.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Can't get SecKeyCreateWithData to work with private key from my App Store Connect account.
Never mind. Turns out you can't actually do this directly with SecKeyCreateWithData, you have to switch to Swift CryptoKit. See: https://developer.apple.com/forums/thread/680572 func createSecKeyWithPEMSecp256r1Private(_ pem: String) throws -> SecKey { let privateKeyCK = try P256.Signing.PrivateKey(pemRepresentation: pem) let x963Data = privateKeyCK.x963Representation var errorQ: Unmanaged<CFError>? = nil guard let privateKeySF = SecKeyCreateWithData(x963Data as NSData, [ kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom, kSecAttrKeyClass: kSecAttrKeyClassPrivate, ] as NSDictionary, &errorQ) else { throw errorQ!.takeRetainedValue() } return privateKeySF }
Topic: Privacy & Security SubTopic: General Tags:
Jan ’25