Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,673 results found

Post

Replies

Boosts

Views

Activity

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 Swift Playground - Types Lesson
For context, I’m using Swift Playground 4.6.4 on macOS 15.6.1. It has two lessons: Learn to Code 1 Learn to Code 2 Your reference to the Types lesson indicates you’re doing Learn to Code 2. Types > Introduction > page 8 introduces the concept of portal, indicating that they’re part of the puzzle world. That concept was introduced in Learn to Code 1 > Commands > Portal Practice. Likewise the concept of switch is in Learn to Code 1 > Commands > Toggling a Switch. [quote='800744021, Adiv_Abramson, /thread/800744, /profile/Adiv_Abramson'] I cannot write code to call methods or set properties on objects about which I have no useful information. [/quote] If you’re asking questions like this then I suspect that Learn to Code isn’t really for you. You might be better off starting with The Swift Programming Language, using a general playground, or a playground in Xcode, to play with the many examples it contains
Sep ’25
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
703
Dec ’22
Reply to App Rejection:Advertising Identifier
I understand. This was a legacy code which we received from another vendor and we havent touched those areas of code....but anyways I will1. Remove all the usages of AsIdentifier.2. Remove Adsupport framework.Will these two suffice for the compliance. If yes, after doing this, Can I safely say that my App doesnt use Advertising Identifier in the questionnaire asked while submitting the App for review??Thanks,John
Dec ’15
Reply to How to solve problem using a variable outside a function
A bit hard to follow your code. Did you edit the code, introducing inconsistencies, or is it the full reall code ?But, I noticed, with proper indentation:func gradeToFetch() { if nameGrade == 2 || nameGrade == 3 { let nameGrade = 2 print (Name Grade First Try is (nameGrade)) } gradeToFetch()There seems to miss a closing curly bracket line 7.Hence you call gradeToFetch() inside gradeToFetch(). Probably not your intent.Once this is corrected, nameGrade is redeclared line 3.Hence, its ne value is lost once exiting the func.Did you want to write :var nameGrade = gradeValue.stringValue // var to be able to change print (Name Grade From Declaration is (nameGrade)) let subjectSelected = subjectValue.stringValue func gradeToFetch() { if nameGrade == 2 || nameGrade == 3 { nameGrade = 2 // Do not redeclare here print (Name Grade First Try is (nameGrade)) } } gradeToFetch()
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’20
Two subscriptions with trial periods
I would like to make two auto-renewable subscriptions (in one family of subscriptions).1) Monthly subscription + 1 month trial2) Yearly subscription + 1 month trial (or, may be, 2 months trial)My quastion:If a user switches form a monthly subscription to an annual subscription plan will she or he get an additional trial period which it set up for an annual subscription plan?I found a question which is almost similar to mine on the forum, but the question of that user has never been answered..
1
0
479
Apr ’16
BETA APi for VisionOS 2
Hello! I encountered a problem accessing BETA APi for VisionOS 2 https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_arkit_object-tracking-parameter-adjustment_allow How can I use it in a regular developer account?
Replies
2
Boosts
0
Views
710
Activity
Jul ’24
Beta 2 icon size
Mac os 10.14.4 beta 2, the Icons on the desktop become large and wont stay small, everytime i reboot they become large again, desktop setting will not stay in place
Replies
0
Boosts
0
Views
456
Activity
Feb ’18
How to register two products with SKAdNetwork
We have two products from AdNetwork (AdNetworkA and B). I have completed registration for AdNetworkA's SKAdNetwork. But we don't know how to register AdNetworkB. Do I have to purchase another Apple Developers Program if I want to register for AdNetworkB?
Replies
0
Boosts
0
Views
355
Activity
Aug ’20
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 Swift Playground - Types Lesson
For context, I’m using Swift Playground 4.6.4 on macOS 15.6.1. It has two lessons: Learn to Code 1 Learn to Code 2 Your reference to the Types lesson indicates you’re doing Learn to Code 2. Types > Introduction > page 8 introduces the concept of portal, indicating that they’re part of the puzzle world. That concept was introduced in Learn to Code 1 > Commands > Portal Practice. Likewise the concept of switch is in Learn to Code 1 > Commands > Toggling a Switch. [quote='800744021, Adiv_Abramson, /thread/800744, /profile/Adiv_Abramson'] I cannot write code to call methods or set properties on objects about which I have no useful information. [/quote] If you’re asking questions like this then I suspect that Learn to Code isn’t really for you. You might be better off starting with The Swift Programming Language, using a general playground, or a playground in Xcode, to play with the many examples it contains
Replies
Boosts
Views
Activity
Sep ’25
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
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
785
Activity
Jan ’26
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
703
Activity
Dec ’22
Reply to App Rejection:Advertising Identifier
I understand. This was a legacy code which we received from another vendor and we havent touched those areas of code....but anyways I will1. Remove all the usages of AsIdentifier.2. Remove Adsupport framework.Will these two suffice for the compliance. If yes, after doing this, Can I safely say that my App doesnt use Advertising Identifier in the questionnaire asked while submitting the App for review??Thanks,John
Replies
Boosts
Views
Activity
Dec ’15
Reply to where can i find createML application in big sur
Hi iOSWellnesys, I believe the new CreateML Action Classifier is available with Xcode developer tools beta 2 (Version 12.0 beta 2 (12A6163b)) and Big Sur beta 2 (11.0 Beta (20A4300b)). I just downloaded it and can see the new action classifier! Happy coding!
Replies
Boosts
Views
Activity
Jul ’20
Reply to How to solve problem using a variable outside a function
A bit hard to follow your code. Did you edit the code, introducing inconsistencies, or is it the full reall code ?But, I noticed, with proper indentation:func gradeToFetch() { if nameGrade == 2 || nameGrade == 3 { let nameGrade = 2 print (Name Grade First Try is (nameGrade)) } gradeToFetch()There seems to miss a closing curly bracket line 7.Hence you call gradeToFetch() inside gradeToFetch(). Probably not your intent.Once this is corrected, nameGrade is redeclared line 3.Hence, its ne value is lost once exiting the func.Did you want to write :var nameGrade = gradeValue.stringValue // var to be able to change print (Name Grade From Declaration is (nameGrade)) let subjectSelected = subjectValue.stringValue func gradeToFetch() { if nameGrade == 2 || nameGrade == 3 { nameGrade = 2 // Do not redeclare here print (Name Grade First Try is (nameGrade)) } } gradeToFetch()
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Feb ’20
Two subscriptions with trial periods
I would like to make two auto-renewable subscriptions (in one family of subscriptions).1) Monthly subscription + 1 month trial2) Yearly subscription + 1 month trial (or, may be, 2 months trial)My quastion:If a user switches form a monthly subscription to an annual subscription plan will she or he get an additional trial period which it set up for an annual subscription plan?I found a question which is almost similar to mine on the forum, but the question of that user has never been answered..
Replies
1
Boosts
0
Views
479
Activity
Apr ’16
Did the new two factor authentication launch?
Apple introduced a new two factor authentication (https://developer.apple.com/support/two-factor-authentication/)Did this not make it to release? I have the existing two-stage verification turned on, and the latest privacy policy still links to that.Just curious if anyone knows.
Replies
3
Boosts
0
Views
579
Activity
Oct ’15
Reply to Xcode received an HTTP error while attempting to communicate with the portal
I'm also getting this error. I was able to code sign an hour or two ago. Servers must be wonky.
Replies
Boosts
Views
Activity
Sep ’15
Reply to TabView init(selection:content:) in Xcode 14.3.1
Could you post the 2 codes: the one that works, the one that fails. That will make it much easier to analyse.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23