Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

163,129 results found

Post

Replies

Boosts

Views

Activity

Reply to array remove
The code editor invoked with `<>` sometimes becomes an ugly editor with two insertion-point cursors and actual insersion point unpredictable...When I use pasting in the code editor, I only use codes copied from Xcode editor.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
List with 2 cells side by side
From the Landmarks sample project, I tried a variation, to get two cells side by side in the List. This is the original with on cell per row as in the tutorial: struct LandmarkList: View { tt ttvar body: some View { ttttList(landmarks) { landmark in ttttttLandmarkRow(landmark: landmark) tttt} tt} } Surprisingly, the following variation works well to display 2 cells side by side: struct LandmarkList: View { tt ttvar body: some View { ttttList (0 ..< (landmarks.count+1)/2) { item in ttttttLandmarkRow(landmark: landmarks[2*item]) ttttttif 2*item + 1 < landmarks.count { ttttttttLandmarkRow(landmark: landmarks[(2*item)+1]) tttttt} tttt} tt} } I thus tried to go on and add navigationLinks… It works when adding a navigation link to the first cell only struct LandmarkList: View { tt ttvar body: some View { ttttNavigationView { ttttttList (0 ..< (landmarks.count+1)/2) { item in ttttttttNavigationLink(destination: LandmarkDetail()) { ttttttttttLand
2
0
757
Dec ’20
Promo codes vs offer codes
I'm planning to publish my paid app (not free). However, I'd like to give my app for free to all my investors. Does it mean they can download my app for free if they use promo codes? The problem is that promo codes are limited to only 100 people! Or should I use offer codes instead, which has like 150,000 codes? What option should I choose, there are many supporters of my app, and I don't want them to pay for it. Thanks!
0
0
1.1k
Nov ’22
StoreKit 2 object
Hello all, Looking for advice on how and when to initialize StoreKit class. Right now in our we create StoreKit object every time a user opens the Plans screen. The idea behind this is that the data is always up to date, so for example user cancels a subscription via Settings and then goes to the app, they will see that a plan is cancelled. But in the docs, Apple says to start to listen for transactions as close as possible to the app launch. Additionally creating StoreKit object multiple times leads a memory leak because of func listenForTransactions() -> Task that contains Task.detached What is the proper way to work with StoreKit 2 object? Should I have only one instance of it and have some sort of sync method to run it every time a user is about to interact with the store or the current implementation is fine? Thanks
0
0
695
Dec ’22
two factor / 2-factor authentication field missing on App Store and disable option missing under 'manage my ID'
Since updating to iOS beta 3 and enabling 2 factor authentication I've been royally screwed:The App Store doesn't have a field to enter the second code, which mean, for instance, I can no longer even download the current version of Xcode, becaue the app store tries to anthenticate my Apple ID and when the phone send me the second code, there's no field to imput it in the App Store.It also turns out the version of the 'Manage my Apple ID' website I am being loged into is not the usual one. It's a 'beta' version of maninging your Apple ID and among other things, surprise, it doesn't have an option to turn off 2 factor authentication.Has anyone ran into this issue?
6
0
773
Jul ’15
Using Keychain Services in Swift 2
Has anyone found the/a recommending way to use Keychain Services since Swift 2. The following code from Stack Overflow is from Swift 1.2 and still seems to work, but it's nothing I'd even come up with without help. let query = [ kSecClass as String: kSecClassGenericPassword as String, kSecAttrService as String: service, kSecAttrAccount as String: account, kSecReturnData as String: true ] var result: NSData? let status = withUnsafeMutablePointer (&result) { SecItemCopyMatching (query, UnsafeMutablePointer ($0)) }I'm wondering if there's now a clearer way.
7
0
8.5k
Jun ’15
StoreKit 2: cancellation button
I have auto-renewable subscriptions in my app. I've been using .manageSubscriptionsSheet to present a user with a variety of subscriptions and a possibility to cancel the current subscription. Now, I'm trying out the new StoreKit 2 (available in iOS 17.0+) - and it works great (and also looks nice), but it doesn't seem to support cancellation... I tried different options and couldn't make it show anything related to unsubscribing. One of the options I've tried was adding .storeButton(.visible, for: .cancellation) - but it doesn't seem to do anything. So the question is: is it not possible to let users unsubscribe from within the app with StoreKit 2? And if so, what's the recommended approach?
4
0
3.3k
Sep ’23
Metal 2 on Mac
Hi all, Does anyone have familiarity with Metal 2 on Mac? We are working on a 3D rendering tool on Mac and are having major issues testing on older Macbooks using Metal's Performance Shaders (Macbook Pros Mid 2012 and 2015 running macOS 10.15) and newer MacBook Airs using Metal's Performance Shaders (Macbook Airs early 2015 running macOS 10.15). When testing rendering using examples from Apple or derived from Apple examples, the screens appear red on older MacBook Pros and black on Mac Book Airs. We have no issues testing on later model Macbooks or on iPads. We would appreciate any guidance to help us resolve this. It has held us up for months in testing with no resolution yet. Thanks so much and Happy New Year!
1
0
1.1k
Dec ’20
Reply to Is it recommended to update to swift 2.0 to support ios 9 on our app?
Bear in mind if you are using any third party code/libraries, they will have to be Swift 2 compatible as well, as you cannot mix Swift 1.2 and 2 in the same project. So I would check those first.I just completed upgrading a project from 1.2 to 2 and it was a bear, I had hundreds of errors and it took me the better part of a day to get it working again (even after Convert > To Latest Swift Syntax). But I'm glad I did it, now all my code is compatible again and I can use all the Swift 2 features like guard, try, etc. I think Swift 2 is going to be the last major project-breaking update for a while, probably until WWDC next year and even that will probably be more minor changes and additions.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
iOS 9 beta 2
i just did the iOS 9 beta 2 instal on my iPhone 6 and my iPad mini 3 and now neither of them will connect to any networks over seas. cell or wifi. any input would be greatly appreciated. thanks
0
0
268
Jun ’15
Reply to DataFlow from Swift to SwfitUI
I don’t understand what you want to achieve with the consecutive assignments: score = 2 score = 3 score = 4 At the end it will always be 4. Or do you mean it is a test if score = 2 { } in that case, please show the real code.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’21
Reply to array remove
The code editor invoked with `<>` sometimes becomes an ugly editor with two insertion-point cursors and actual insersion point unpredictable...When I use pasting in the code editor, I only use codes copied from Xcode editor.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’15
List with 2 cells side by side
From the Landmarks sample project, I tried a variation, to get two cells side by side in the List. This is the original with on cell per row as in the tutorial: struct LandmarkList: View { tt ttvar body: some View { ttttList(landmarks) { landmark in ttttttLandmarkRow(landmark: landmark) tttt} tt} } Surprisingly, the following variation works well to display 2 cells side by side: struct LandmarkList: View { tt ttvar body: some View { ttttList (0 ..< (landmarks.count+1)/2) { item in ttttttLandmarkRow(landmark: landmarks[2*item]) ttttttif 2*item + 1 < landmarks.count { ttttttttLandmarkRow(landmark: landmarks[(2*item)+1]) tttttt} tttt} tt} } I thus tried to go on and add navigationLinks… It works when adding a navigation link to the first cell only struct LandmarkList: View { tt ttvar body: some View { ttttNavigationView { ttttttList (0 ..< (landmarks.count+1)/2) { item in ttttttttNavigationLink(destination: LandmarkDetail()) { ttttttttttLand
Replies
2
Boosts
0
Views
757
Activity
Dec ’20
Slowness in Developer Strap 2
Hi I’m using Vision Pro m5 and developer strap 2. When I connect it to my Mac, it still shows 480M… all systems are using latest firmware… Anyone knows why?
Replies
1
Boosts
0
Views
661
Activity
Jan ’26
Promo codes vs offer codes
I'm planning to publish my paid app (not free). However, I'd like to give my app for free to all my investors. Does it mean they can download my app for free if they use promo codes? The problem is that promo codes are limited to only 100 people! Or should I use offer codes instead, which has like 150,000 codes? What option should I choose, there are many supporters of my app, and I don't want them to pay for it. Thanks!
Replies
0
Boosts
0
Views
1.1k
Activity
Nov ’22
StoreKit 2 object
Hello all, Looking for advice on how and when to initialize StoreKit class. Right now in our we create StoreKit object every time a user opens the Plans screen. The idea behind this is that the data is always up to date, so for example user cancels a subscription via Settings and then goes to the app, they will see that a plan is cancelled. But in the docs, Apple says to start to listen for transactions as close as possible to the app launch. Additionally creating StoreKit object multiple times leads a memory leak because of func listenForTransactions() -> Task that contains Task.detached What is the proper way to work with StoreKit 2 object? Should I have only one instance of it and have some sort of sync method to run it every time a user is about to interact with the store or the current implementation is fine? Thanks
Replies
0
Boosts
0
Views
695
Activity
Dec ’22
two factor / 2-factor authentication field missing on App Store and disable option missing under 'manage my ID'
Since updating to iOS beta 3 and enabling 2 factor authentication I've been royally screwed:The App Store doesn't have a field to enter the second code, which mean, for instance, I can no longer even download the current version of Xcode, becaue the app store tries to anthenticate my Apple ID and when the phone send me the second code, there's no field to imput it in the App Store.It also turns out the version of the 'Manage my Apple ID' website I am being loged into is not the usual one. It's a 'beta' version of maninging your Apple ID and among other things, surprise, it doesn't have an option to turn off 2 factor authentication.Has anyone ran into this issue?
Replies
6
Boosts
0
Views
773
Activity
Jul ’15
Code
Redeem code
Replies
0
Boosts
0
Views
347
Activity
Aug ’20
Using Keychain Services in Swift 2
Has anyone found the/a recommending way to use Keychain Services since Swift 2. The following code from Stack Overflow is from Swift 1.2 and still seems to work, but it's nothing I'd even come up with without help. let query = [ kSecClass as String: kSecClassGenericPassword as String, kSecAttrService as String: service, kSecAttrAccount as String: account, kSecReturnData as String: true ] var result: NSData? let status = withUnsafeMutablePointer (&result) { SecItemCopyMatching (query, UnsafeMutablePointer ($0)) }I'm wondering if there's now a clearer way.
Replies
7
Boosts
0
Views
8.5k
Activity
Jun ’15
StoreKit 2: cancellation button
I have auto-renewable subscriptions in my app. I've been using .manageSubscriptionsSheet to present a user with a variety of subscriptions and a possibility to cancel the current subscription. Now, I'm trying out the new StoreKit 2 (available in iOS 17.0+) - and it works great (and also looks nice), but it doesn't seem to support cancellation... I tried different options and couldn't make it show anything related to unsubscribing. One of the options I've tried was adding .storeButton(.visible, for: .cancellation) - but it doesn't seem to do anything. So the question is: is it not possible to let users unsubscribe from within the app with StoreKit 2? And if so, what's the recommended approach?
Replies
4
Boosts
0
Views
3.3k
Activity
Sep ’23
Metal 2 on Mac
Hi all, Does anyone have familiarity with Metal 2 on Mac? We are working on a 3D rendering tool on Mac and are having major issues testing on older Macbooks using Metal's Performance Shaders (Macbook Pros Mid 2012 and 2015 running macOS 10.15) and newer MacBook Airs using Metal's Performance Shaders (Macbook Airs early 2015 running macOS 10.15). When testing rendering using examples from Apple or derived from Apple examples, the screens appear red on older MacBook Pros and black on Mac Book Airs. We have no issues testing on later model Macbooks or on iPads. We would appreciate any guidance to help us resolve this. It has held us up for months in testing with no resolution yet. Thanks so much and Happy New Year!
Replies
1
Boosts
0
Views
1.1k
Activity
Dec ’20
Reply to Is it recommended to update to swift 2.0 to support ios 9 on our app?
Bear in mind if you are using any third party code/libraries, they will have to be Swift 2 compatible as well, as you cannot mix Swift 1.2 and 2 in the same project. So I would check those first.I just completed upgrading a project from 1.2 to 2 and it was a bear, I had hundreds of errors and it took me the better part of a day to get it working again (even after Convert > To Latest Swift Syntax). But I'm glad I did it, now all my code is compatible again and I can use all the Swift 2 features like guard, try, etc. I think Swift 2 is going to be the last major project-breaking update for a while, probably until WWDC next year and even that will probably be more minor changes and additions.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
iOS 9 beta 2
i just did the iOS 9 beta 2 instal on my iPhone 6 and my iPad mini 3 and now neither of them will connect to any networks over seas. cell or wifi. any input would be greatly appreciated. thanks
Replies
0
Boosts
0
Views
268
Activity
Jun ’15
code
I am a developer, please send me the authentication code!
Replies
0
Boosts
0
Views
342
Activity
Oct ’24
Reply to DataFlow from Swift to SwfitUI
I don’t understand what you want to achieve with the consecutive assignments: score = 2 score = 3 score = 4 At the end it will always be 4. Or do you mean it is a test if score = 2 { } in that case, please show the real code.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to AVPlayer.timeControlStatus and AVPlayer.rate are wrong during fast forward or backward
When setting rate = 2 or pressing the L key while playing the video at normal speed, the video gets played fast forward. Either way rate is returned as being 0, even when doing rate = 2 in code.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’20