Post

Replies

Boosts

Views

Activity

Reply to App crashing in Appdelegate with " __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__"
What darkpaw wrote, plus. You say it's crashing in AppDelegate. That may not be the case, that's only the crash is finally reported (in appDelegate) but did occur somewhere before. You should read in detail the excellent post from Quinn on how to report problem on the forum: https://developer.apple.com/forums/thread/706527 Have you the crash report ? Please show Are you using third party library like Firebase ? Please tell any other information that may be useful
Topic: App & System Services SubTopic: General Tags:
Apr ’24
Reply to My app was reject because "Strings propurse"
Examples of unclear purpose strings: "App would like to access your Contacts" "App needs microphone access" That's what you want, that's not the reason why. Correct texts should explain what app will do with these accesses (of course your reason will probably be different: "App would like to access your Contacts to be able to send mail to contacts" "App needs microphone access to allow voice command" Of course, reviewer may check that this is how app uses the access. Be careful, if misleading or clearly false reason, your account could even be terminated.
Apr ’24
Reply to Guideline 4.3
Reviewer message is very explicit: "We noticed your app shares a similar binary, metadata, and/or concept as apps submitted to the App Store by other developers, with only minor differences. Submitting similar or repackaged apps is a form of spam that creates clutter and makes it difficult for users to discover new apps." Even if you showed agreement between the 2 developers, that would not solve the issue. AFAIK, the only solution is to cancel one of the apps (the one that was rejected) and remove from Appstore. And post a comment to reviewer when you update the other app that the similar app has been withdrawn.
Apr ’24
Reply to My iMac user login script that 30 minutes to start up even though I have tons of hard drive space and just recently slammed it with vanilla MacOS Sonoma 14.4.1.
What should I do? Explain precisely what happens. How do you know script does not start ? Could you show the script ? Could you explain how you launch the script ? Note: it seems you never close your threads, even when you've got correct answer. You should do it to keep forum clean and let those who helped know that their answer solved the issue.
Topic: App & System Services SubTopic: Hardware Tags:
Apr ’24
Reply to passing data from view one to seven
@sonam93 Yes, that requires that observer is added when notification is sent See details here: https://stackoverflow.com/questions/66489663/nsnotification-not-observing-or-posting-data Where and when do you load VC1 to VC6 ? If it is just a timing delay, you could post the notification in a dispatch with a 0.2s delay. That should work (increase the delay a little bit if needed). DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { NotificationCenter.default.post(name: .sendApple, object: nil, userInfo: [kNotificationValue : "apple"]) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to IOS publish app Issue
I understand all the text, except last line, is Reviewer mail. Exact ? You should edit your post to make it clearer. The request from reviewer seems very clear: Your app provides financial services but does not meet all the requirements for apps providing these services. Specifically: The app must be published under a seller and company name that is associated with the organization or company providing the services. In this case, your app must be published under a seller name and company name that reflects the Askmefund name. The account that submits the app must be enrolled in the Apple Developer Program as an organization, and not as an individual. So what is your question ? Are you able to "provide ownership documentation or modify the vendor seller name." Otherwise, you will not pass the review.
Topic: Privacy & Security SubTopic: General Tags:
Apr ’24
Reply to TextField gives error message
Is it the real code or did you type it here ? I noticed several errors: var id: UUID() soudé be var id = UUID() var body: Some View { should be var body: some View { What is this closure after TextField (it is only supported in MacOS: https://stackoverflow.com/questions/58776561/add-label-to-swiftui-textfield): TextField("xValue", value: $vars.xValue, format: .number) { Text("X") } So here is a code that works and that is properly formatted with code formatter. If that's OK, please close the thread by marking this answer as correct. Otherwise explain what's the problem. @Observable class Variables: Identifiable { var id = UUID() // <<-- Changed here var xValue: Int = 1 var yValue: Int = 1 } struct MainView: View { @State var vars = Variables() var body: some View { VStack { Subview() .environment(vars) .padding() Text("Value X = \(vars.xValue)") // No $vars here Text("Value Y = \(vars.yValue)") } } } struct Subview: View { @Environment(Variables.self) private var vars var body: some View { @Bindable var vars = vars // <<-- Added here // https://developer.apple.com/documentation/swiftui/bindable VStack { HStack { Text("X") TextField("xValue", value: $vars.xValue, format: .number) /*{ Text("X") }*/ // <<-- Changed here .textFieldStyle(.roundedBorder) } HStack { Text("Y") TextField("yValue", value: $vars.yValue, format: .number) /*{ Text("Y") }*/ .textFieldStyle(.roundedBorder) } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24
Reply to Privacy Manifests: Incorrect "Missing API Declaration" error
Did you include the privacy manifest as required ? https://developer.apple.com/support/third-party-SDK-requirements/#:~:text=Third%2Dparty%20software%20development%20kits,obvious%20to%20developers%20and%20users. you must include the privacy manifest for any SDK listed below when you submit new apps in App Store Connect that include those SDKs
Replies
Boosts
Views
Activity
Apr ’24
Reply to App crashing in Appdelegate with " __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__"
What darkpaw wrote, plus. You say it's crashing in AppDelegate. That may not be the case, that's only the crash is finally reported (in appDelegate) but did occur somewhere before. You should read in detail the excellent post from Quinn on how to report problem on the forum: https://developer.apple.com/forums/thread/706527 Have you the crash report ? Please show Are you using third party library like Firebase ? Please tell any other information that may be useful
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to My app was reject because "Strings propurse"
Examples of unclear purpose strings: "App would like to access your Contacts" "App needs microphone access" That's what you want, that's not the reason why. Correct texts should explain what app will do with these accesses (of course your reason will probably be different: "App would like to access your Contacts to be able to send mail to contacts" "App needs microphone access to allow voice command" Of course, reviewer may check that this is how app uses the access. Be careful, if misleading or clearly false reason, your account could even be terminated.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Xcode: String interpolation / String(describing:) automatic fix broken
It's not a bug. That's just to warn you that print may show an optional optional(some value) But you don't have to care for a print on the console. Please show complete code.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Version 14.4.
Welcome to the forum. No, you can submit an app that runs on iOS 17.2 and above. No requirement to make it run on lower versions. But you do limit your accessible market. So, that's your decision.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Guideline 4.3
Reviewer message is very explicit: "We noticed your app shares a similar binary, metadata, and/or concept as apps submitted to the App Store by other developers, with only minor differences. Submitting similar or repackaged apps is a form of spam that creates clutter and makes it difficult for users to discover new apps." Even if you showed agreement between the 2 developers, that would not solve the issue. AFAIK, the only solution is to cancel one of the apps (the one that was rejected) and remove from Appstore. And post a comment to reviewer when you update the other app that the similar app has been withdrawn.
Replies
Boosts
Views
Activity
Apr ’24
Reply to Xcode 15.3 , custom fonts gone.
Does it occur for any custom font ? Which fonts ? Could you show the problem through detailed example (and possibly screen shots) ?
Replies
Boosts
Views
Activity
Apr ’24
Reply to My app submit for review from 15 Mar 2024 (1.5 month) but do not get any answer from Apple
What was the cause of original rejection ? When there are such delays, it may mean that issue is not only the app itself but your account for which they are doing some investigation. Then submitting a new version does not help.
Replies
Boosts
Views
Activity
Apr ’24
Reply to My iMac user login script that 30 minutes to start up even though I have tons of hard drive space and just recently slammed it with vanilla MacOS Sonoma 14.4.1.
What should I do? Explain precisely what happens. How do you know script does not start ? Could you show the script ? Could you explain how you launch the script ? Note: it seems you never close your threads, even when you've got correct answer. You should do it to keep forum clean and let those who helped know that their answer solved the issue.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to passing data from view one to seven
@sonam93 Yes, that requires that observer is added when notification is sent See details here: https://stackoverflow.com/questions/66489663/nsnotification-not-observing-or-posting-data Where and when do you load VC1 to VC6 ? If it is just a timing delay, you could post the notification in a dispatch with a 0.2s delay. That should work (increase the delay a little bit if needed). DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { NotificationCenter.default.post(name: .sendApple, object: nil, userInfo: [kNotificationValue : "apple"]) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to IOS publish app Issue
I understand all the text, except last line, is Reviewer mail. Exact ? You should edit your post to make it clearer. The request from reviewer seems very clear: Your app provides financial services but does not meet all the requirements for apps providing these services. Specifically: The app must be published under a seller and company name that is associated with the organization or company providing the services. In this case, your app must be published under a seller name and company name that reflects the Askmefund name. The account that submits the app must be enrolled in the Apple Developer Program as an organization, and not as an individual. So what is your question ? Are you able to "provide ownership documentation or modify the vendor seller name." Otherwise, you will not pass the review.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to TextField gives error message
Is it the real code or did you type it here ? I noticed several errors: var id: UUID() soudé be var id = UUID() var body: Some View { should be var body: some View { What is this closure after TextField (it is only supported in MacOS: https://stackoverflow.com/questions/58776561/add-label-to-swiftui-textfield): TextField("xValue", value: $vars.xValue, format: .number) { Text("X") } So here is a code that works and that is properly formatted with code formatter. If that's OK, please close the thread by marking this answer as correct. Otherwise explain what's the problem. @Observable class Variables: Identifiable { var id = UUID() // <<-- Changed here var xValue: Int = 1 var yValue: Int = 1 } struct MainView: View { @State var vars = Variables() var body: some View { VStack { Subview() .environment(vars) .padding() Text("Value X = \(vars.xValue)") // No $vars here Text("Value Y = \(vars.yValue)") } } } struct Subview: View { @Environment(Variables.self) private var vars var body: some View { @Bindable var vars = vars // <<-- Added here // https://developer.apple.com/documentation/swiftui/bindable VStack { HStack { Text("X") TextField("xValue", value: $vars.xValue, format: .number) /*{ Text("X") }*/ // <<-- Changed here .textFieldStyle(.roundedBorder) } HStack { Text("Y") TextField("yValue", value: $vars.yValue, format: .number) /*{ Text("Y") }*/ .textFieldStyle(.roundedBorder) } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to How can I check if my project is set up to use SwiftData?
You don't select SwiftData at start (you may select CoreData).
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Is SwiftData created specifically for SwiftUI?
No, SwiftData can be used with UIKit for instance, not requiring SwiftUI.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Apr ’24
Reply to Error when calling function to move an element: "Cannot use mutating member on immutable value: 'self' is immutable"
Thanks for the feedback. Don't forget to mark the correct answer to close the thread. Good continuation.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’24