Post

Replies

Boosts

Views

Activity

Reply to Operating system
Many years ago I worked as part of a team creating an operating system for a mobile device, it was a team of about 50 people and it took about 3 years to get the first version ready. You think you can create an entire operating system on your own and by assistance from a forum?
Apr ’23
Reply to "ITMS-90338: Non-public API usage - The app references non-public selectors" issue still present when uploading to TestFlight, except now its preventing builds from appearing
Several days ago I uploaded a build to Testflight successfully, I just uploaded the identical version (just bumped the build number, that was the only change) and re-uploaded it, I just got the above error and the build isn't showing in Testflight (it appeared briefly for about 10 seconds saying processing then then vanished). So this is defiantly an Apple back end bug.
Feb ’23
Reply to Rejected App
In my experience with App Store reviewers, they are not based in the US and English is not their first language nor a strong language in many cases. With you application and the use of the word happy that could perhaps lead to some mis-assumptions on their part. A happy number implies a fun or child like app, which is what the reviewers may think it is. Have you tried emphasizing the mathematical nature of your app to them, steering away from phrases like happy?
Jan ’23
Reply to I want to determine the current view display in SwiftUI
You could for example have a variable which gets written to by each view controller as it loads, thus keeping a record of the last loaded view controller. Or you could recursively scan the view controllers to determine what's at the top, I did that in one of my app's, the code is below. Its specific to the structure of my app but you get the general idea. extension UIApplication {     class func topViewController(_ base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController?     {         if let nav = base as? UINavigationController         {             if nav.visibleViewController is UIAlertController             {                 let top = topViewController(nav.viewControllers.last)                 return top             }             else             {                 let top = topViewController(nav.visibleViewController)                 return top             }         }                  if let tab = base as? UITabBarController         {             if let selected = tab.selectedViewController             {                 let top = topViewController(selected)                 return top             }         }                  if let presented = base?.presentedViewController         {             if presented is UIAlertController             {                 return base             }             else             {                 let top = topViewController(presented)                 return top             }         }         return base     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to Crashes in the Call Directory Extension
Errm, wouldn't it be better to instead eliminate the crash from your extension??? Common reasons for getting a crash with the call extension are: a) you're loading up too many/large data structures at once and are running out of memory, i.e. you load up an array of phone numbers which is hundreds of thousands entries b) you attempt to add a duplicate phone number c) the phone numbers are not sorted in order.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Reply to Operating system
Many years ago I worked as part of a team creating an operating system for a mobile device, it was a team of about 50 people and it took about 3 years to get the first version ready. You think you can create an entire operating system on your own and by assistance from a forum?
Replies
Boosts
Views
Activity
Apr ’23
Reply to App bundle remains after the user deletes the app
I've noticed the same thing happening. Not just databases but things like values in defaults remain. But only for a short while, if you delete an app then reinstall it within a few or several seconds of deleting it then this occurs, if the time gap is longer, say a few minutes, then it gets deleted.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to "ITMS-90338: Non-public API usage - The app references non-public selectors" issue still present when uploading to TestFlight, except now its preventing builds from appearing
Several days ago I uploaded a build to Testflight successfully, I just uploaded the identical version (just bumped the build number, that was the only change) and re-uploaded it, I just got the above error and the build isn't showing in Testflight (it appeared briefly for about 10 seconds saying processing then then vanished). So this is defiantly an Apple back end bug.
Replies
Boosts
Views
Activity
Feb ’23
Reply to Filter all notifications
Every incoming notification to the phone, not just to your app? No. An invisible app, no a background app, no. No disrespect but you're obviously very new to iOS development. Such things like this are out of the question.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to How do I use environment variables at build time?
Not sure of the exact requirements here but what about if the url is stored within a .plist file which is read at run time. The value in the .plist can be the actual final url, or it is easy to inject a different url into there at build time. There is a tool to edit the contents of plists.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Rejected App
In my experience with App Store reviewers, they are not based in the US and English is not their first language nor a strong language in many cases. With you application and the use of the word happy that could perhaps lead to some mis-assumptions on their part. A happy number implies a fun or child like app, which is what the reviewers may think it is. Have you tried emphasizing the mathematical nature of your app to them, steering away from phrases like happy?
Replies
Boosts
Views
Activity
Jan ’23
Reply to I want to determine the current view display in SwiftUI
You could for example have a variable which gets written to by each view controller as it loads, thus keeping a record of the last loaded view controller. Or you could recursively scan the view controllers to determine what's at the top, I did that in one of my app's, the code is below. Its specific to the structure of my app but you get the general idea. extension UIApplication {     class func topViewController(_ base: UIViewController? = UIApplication.shared.keyWindow?.rootViewController) -> UIViewController?     {         if let nav = base as? UINavigationController         {             if nav.visibleViewController is UIAlertController             {                 let top = topViewController(nav.viewControllers.last)                 return top             }             else             {                 let top = topViewController(nav.visibleViewController)                 return top             }         }                  if let tab = base as? UITabBarController         {             if let selected = tab.selectedViewController             {                 let top = topViewController(selected)                 return top             }         }                  if let presented = base?.presentedViewController         {             if presented is UIAlertController             {                 return base             }             else             {                 let top = topViewController(presented)                 return top             }         }         return base     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Crashes in the Call Directory Extension
Errm, wouldn't it be better to instead eliminate the crash from your extension??? Common reasons for getting a crash with the call extension are: a) you're loading up too many/large data structures at once and are running out of memory, i.e. you load up an array of phone numbers which is hundreds of thousands entries b) you attempt to add a duplicate phone number c) the phone numbers are not sorted in order.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22