Post

Replies

Boosts

Views

Activity

Reply to UIDatePicker setDatePickerMode Crash in iOS14.7.1
Error message: unexpected number of calendar units: 4 for format: EEE ├'day': d┤ HH.mm (expecting at least 5 elements) Could you show how you have defined format ? You should have something like this: let source = "Mon, 21 Mar 2016 10:26:45 GMT" let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US") dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss zzz" let day = dateFormatter.date(from: source) print("day", day!) Or (with just 5 components): let source = "Thu, 14 Oct 2021 10:26:45" let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US") dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss" let day = dateFormatter.date(from: source2) print("day", day!) Take care that the 3 letters for the day of week must correspond to locale: "Thu" if "en_US" "Jeu" if "fr_FR" "Jue" if "es_ES" It crashes otherwise.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Reply to iPhone app rejected for UI layout
The problem is the layout and design elements are all designed to fit the resolution of my iPhone 11. You mean iPhone11 with 6.5" screen ? That's a very unfortunate design decision. You will have to rework it. You cannot limit your app to some type of iPhone on AppStore. But, AFAIK, there is no formal requirement to support all devices equally. However, guidelines say: 2.4.1 To ensure people get the most out of your app, iPhone apps should run on iPad whenever possible. We encourage you to consider building universal apps so customers can use them on all of their devices. Learn more about Universal apps. And you need also to provide screen shots at least from 6.5" and 5.5" devices: so your app will be checked to work perfectly on both. https://help.apple.com/app-store-connect/#/devd274dd925 6.5 inch (iPhone 13 Pro Max, iPhone 12 Pro Max, iPhone 11 Pro Max, iPhone 11, iPhone XSMax, iPhone XR)    Exact Screenshots needed 5.8 inch (iPhone 13 Pro, iPhone 13, iPhone 13 mini, iPhone 12 Pro, iPhone 12, iPhone 12 mini, iPhone 11 Pro, iPhone XS, iPhone X) 5.5 inch (iPhone 8 Plus, iPhone 7 Plus, iPhone 6s Plus)       Exact Screenshots needed So my catch of it: apps must work perfectly at least on 6.5 and 5.5" and 5.8" devices 0n 5.8, the reduced 5.5" should be accepted You need to find a way for users to run on smaller devices: scrolling the top view may be an option, even though not perfect (but using Safari on a smaller iPhone shows the same limits). And add a warning in your app description that app best works on 5.5" and over. And let reviewer know it. Hope that helps.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Oct ’21
Reply to Xcode Build Alerts
Xcode 12 had a feature where an image popped up to indicate success or failure of the build Effectively, the big icon has disappeared. What you get is a status message at top of screen: Apparently, once 13 was out of beta, Apple automatically upgraded me.  You have probably set Automatic updates; goto: About this Mac Overview tab Software update button uncheck automatic updates. See details here: h t t p s : / / w w w.theverge.com/21289290/apple-macos-app-updates-manage-store-automatic
Oct ’21
Reply to UIDatePicker setDatePickerMode Crash in iOS14.7.1
Error message: unexpected number of calendar units: 4 for format: EEE ├'day': d┤ HH.mm (expecting at least 5 elements) Could you show how you have defined format ? You should have something like this: let source = "Mon, 21 Mar 2016 10:26:45 GMT" let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US") dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss zzz" let day = dateFormatter.date(from: source) print("day", day!) Or (with just 5 components): let source = "Thu, 14 Oct 2021 10:26:45" let dateFormatter = DateFormatter() dateFormatter.locale = Locale(identifier: "en_US") dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss" let day = dateFormatter.date(from: source2) print("day", day!) Take care that the 3 letters for the day of week must correspond to locale: "Thu" if "en_US" "Jeu" if "fr_FR" "Jue" if "es_ES" It crashes otherwise.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to test anti jailbreak
I would contact Apple support to ask them.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPhone app rejected for UI layout
The problem is the layout and design elements are all designed to fit the resolution of my iPhone 11. You mean iPhone11 with 6.5" screen ? That's a very unfortunate design decision. You will have to rework it. You cannot limit your app to some type of iPhone on AppStore. But, AFAIK, there is no formal requirement to support all devices equally. However, guidelines say: 2.4.1 To ensure people get the most out of your app, iPhone apps should run on iPad whenever possible. We encourage you to consider building universal apps so customers can use them on all of their devices. Learn more about Universal apps. And you need also to provide screen shots at least from 6.5" and 5.5" devices: so your app will be checked to work perfectly on both. https://help.apple.com/app-store-connect/#/devd274dd925 6.5 inch (iPhone 13 Pro Max, iPhone 12 Pro Max, iPhone 11 Pro Max, iPhone 11, iPhone XSMax, iPhone XR)    Exact Screenshots needed 5.8 inch (iPhone 13 Pro, iPhone 13, iPhone 13 mini, iPhone 12 Pro, iPhone 12, iPhone 12 mini, iPhone 11 Pro, iPhone XS, iPhone X) 5.5 inch (iPhone 8 Plus, iPhone 7 Plus, iPhone 6s Plus)       Exact Screenshots needed So my catch of it: apps must work perfectly at least on 6.5 and 5.5" and 5.8" devices 0n 5.8, the reduced 5.5" should be accepted You need to find a way for users to run on smaller devices: scrolling the top view may be an option, even though not perfect (but using Safari on a smaller iPhone shows the same limits). And add a warning in your app description that app best works on 5.5" and over. And let reviewer know it. Hope that helps.
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode Build Alerts
Xcode 12 had a feature where an image popped up to indicate success or failure of the build Effectively, the big icon has disappeared. What you get is a status message at top of screen: Apparently, once 13 was out of beta, Apple automatically upgraded me.  You have probably set Automatic updates; goto: About this Mac Overview tab Software update button uncheck automatic updates. See details here: h t t p s : / / w w w.theverge.com/21289290/apple-macos-app-updates-manage-store-automatic
Replies
Boosts
Views
Activity
Oct ’21
Reply to IOKit is marked as Mac Catalyst 13.0+ compatible yet I'm unable to import it into my Swift iOS app
It is marked for MacCatalyst, MacOS, not iOS. This is an old thread, but should still be valid: https://stackoverflow.com/questions/44792611/cannot-import-iokit-on-xcode-9-beta-2-or-xcode-8-3-3
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to IOKit is marked as Mac Catalyst 13.0+ compatible yet I'm unable to import it into my Swift iOS app
To force forum to load all posts !
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Error on uploading -UIUserInterfaceStyle can’t be ''. It can only be 'Light', 'Dark', or 'Automatic'
Could you show your info.plist ? It could be you have created (by mistake ?) a key UIUserInterfaceStyle but did not define any content for it. Look at info.plist and search for: or If there is nothing in the String, you should add light or dark. Or have you defined an appearance property in your code that is not correct ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to IOS UI SDK fails to load on only one particular device
You should tell you use Firebase. And show the full code of ViewController.swift which seems to be the cause of crash. Even though the line number is surprising.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Table view with dynamic content - is it possible?
Do you want to do this in UIKit or in SwiftUI ? Or is it MacOS ? In that case, that's much easier. Multicolumns table are not easy with TableViews. You'd probably better use CollectionView. See also if UIKit: https://developer.apple.com/documentation/uikit/uicollectionview?changes=_4
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot find type '<#Value: BinaryFloatingPoint#>' in scope
Please show the code where the problem is. It will make it easier than searching what exact code you are copying.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to My system Data takes 71Gb
Did you purge all caches, notably in Safari ? Get details here on how to do: h t t p s : / / w w w.macworld.com/article/232651/iphone-other-storage-what-is-it-and-how-do-you-delete-it.html
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Calendar Component Quarter always returns zero
You answered in fact to your own question. You could however file a bug report to ask for enhancement.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to why is my app just stopping how do I fix this
why is my app just stopping Stopping after what ? What do you expect your app to do next ? Where is it in code
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to My system Data takes 71Gb
Try to go to General settings > Safari > Clear history (at the very bottom of the page)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How much time will it take approximately to receive a reply after a message is sent in WCSession
From my personal experience, 1-3 s in general.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21