Post

Replies

Boosts

Views

Activity

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 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 "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 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 I want to be a developer but have no experience
You can learn how to code for iOS from books and tutorials, but unless you do something like enroll in a programming course that teaches you the fundamentals and principles of design and code, then the chances are you won't achieve your goal to become a good developer, you'll be somebody who can create an iOS app but is probably designed like crap and implemented terribly and is working tenuously and will fall apart with a slight change. If it works as you intended maybe that doesn't matter to you, but you did say good developer was your goal as opposed to a goal of being able to develop an iOS app. Sorry to sound so negative, but it's just the truth.
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Reply to How to reboot from Objective-C?
What on earth does that mean? You have an app and you want the app to make the iPhone reboot? That's totally impossible.
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Archive error: The specified item could not be found in the keychain.
It says "error: The specified item could not be found in the keychain." But you haven't said if the certs are in your keychain, if not why haven't you added them as that's what the error says is the problem, if you have then you haven't posted a screenshot of your keychain contents/showing if they are valid or not.
Replies
Boosts
Views
Activity
Jan ’23
Reply to "com.apple.developer.pushkit.unrestricted-voip"
For this entitlement you have to ask Apple if they will grant it to your app, if they do then they will add it to the provisioning/signing profiles etc.
Topic: Code Signing SubTopic: Entitlements Tags:
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 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 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 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 "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 TestFlight invite not received
7 years later since this thread was created, and this still occurs very frequently. Ridiculous.
Replies
Boosts
Views
Activity
Feb ’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 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 I want to be a developer but have no experience
You can learn how to code for iOS from books and tutorials, but unless you do something like enroll in a programming course that teaches you the fundamentals and principles of design and code, then the chances are you won't achieve your goal to become a good developer, you'll be somebody who can create an iOS app but is probably designed like crap and implemented terribly and is working tenuously and will fall apart with a slight change. If it works as you intended maybe that doesn't matter to you, but you did say good developer was your goal as opposed to a goal of being able to develop an iOS app. Sorry to sound so negative, but it's just the truth.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to Silent Background Push Notification not working in Release build.
A background push will never ever get delivered to the app if the app has been terminated. There is absolutely nothing you can do about that. If the app is in the background it should, however it might not if the batter level is low or several other undocumented criteria.
Replies
Boosts
Views
Activity
May ’23
Reply to CFBundleIdentfier Collision uploading app with 3rd party xcframework
P.S. I have another app where I am using a .framework within the app and also within the extension, why are there no problems when using a .framework in my other app, but trying to use a .xcframework in a similar manner does not work in this app?
Replies
Boosts
Views
Activity
May ’23
Reply to Xcode 15 beta doesn't show my phone
I had to download the iOS simulator before I was able to use a physical device. Surely that must be a bug, otherwise its crazy insane behavior for physical hardware to have a dependency on the simulator before its useable.
Replies
Boosts
Views
Activity
Jun ’23