Post

Replies

Boosts

Views

Activity

Reply to No more simulators showing in Xcode
I cleaned Xcode caches. I reinstalled Xcode 14.2 To no avail. If I try to add simulator, then look at the simulators list, I get a whole bunch of(all for iOS 16.2). But no one appear in the target list for compiling. I'll try solution proposed here: https://stackoverflow.com/questions/78372541/xcode-doesnt-show-simulators Even though XProtectPayloads. If it says 151, it doesn' work. I updated system to the latest available for this MacBook. No change. I disabled xprotect. No change.
Jun ’25
Reply to How can I have a view cover the status bar?
In UIKit, you can call override var prefersStatusBarHidden: Bool { return true } In SwiftUI, equivalent by calingl the modifier: struct ContentView: View { var body: some View { Text("Hello, World!") .statusBar(hidden: true) } } More details here: https://medium.com/app-makers/how-to-hide-the-status-bar-in-swiftui-all-methods-explained-07eeca7ac3d6
Topic: UI Frameworks SubTopic: SwiftUI
Jun ’25
Reply to Epic games website sign in page
We all would like all bugs to fixed immediately, at our will. But that does not work like this. iOS 26 is a beta, with all the potential issues. You use it at your own risk But you can: report a bug in feedback assistant use a released version of iOS contact the web site.The problem may be on their side.
Topic: Safari & Web SubTopic: General
Jun ’25
Reply to App
That is not a question for this forum, which is about your app development, not about using apps. Don't forget that iOS 26 is beta that you use at your own risks. If you need stability you should stay with a released version. So,you should either: contact TikTok (maybe a users forum) file a bug report
Topic: Community SubTopic: Apple Developers Tags:
Jun ’25
Reply to App rejection but others ok?
If your app is doing exactly the same thing than other apps, it will risk a spam refusal. In any case, it is not an argument that other app have been accepted and hence your app should as well. You don't know the exact content of other apps, nor the explanations they may have provided. You have to focus on your app and answers the questions asked. And provide clear and factual answers, not what you think the reviewer should do… Good luck.
Jun ’25
Reply to "illegal character encoding in string literal" warnings in Xcode
Some of my error messages have characters outside the straight ASCII character set (i.e. "å"). The editor correctly displays these, but I get plenty of Illegal Character warnings and the messages do not display properly. Could you show related code, as well as the exact warnings and a screenshot of messages you get. That will help understand what's happening and hopefully propose solution.
Jun ’25
Reply to NSuserdefault issue after restart my iphone
@mutou519 have you checked that you saved to userDefaults ? May be, when you quit the app (by swiping up ?), you don't go through the code that saves userDefaults. To check: in the part of code where you intent to save, add a print statement to check in logs that it was effectively done. If that's the case, you should save userDefaults in SceneDelegate: func sceneDidEnterBackground(_ scene: UIScene) { // Save userDefaults } and also possibly here: func sceneDidDisconnect(_ scene: UIScene) { } and read here: func sceneWillEnterForeground(_ scene: UIScene) { // read userDefaults } You could also save in AppDelegate: func applicationWillTerminate(_ application: UIApplication) { // Save userDefaults }
Topic: App & System Services SubTopic: General Tags:
Jun ’25
Reply to Xcode 26 Beta1 UISegmentedControl can't change value
I tested (with segmented control in storyboard) and noticed several issues: if behaviour for both segments is "Enabled" and "non selected" I cannot switch from First to second the title disappears, hidden by a white mask if first segment selected (in storyboard) when selected second, its title is hidden I can slide a first time and everything displays OK I can swipe back to first But title of first is hidden as well If I select first by clicking, cannot swipe anymore… Note: this issue of title hidden when item selected occurs also with tabbar buttons.
Topic: UI Frameworks SubTopic: UIKit
Jun ’25
Reply to Any apple employees here?
This is "just" a place for developers to help other developers. It is not an official channel to Apple, even though some Apple experts contribute with high value, on an individual basis. Some use the forum to report issues, but that should be done through Feedback assistant: https://feedbackassistant.apple.com To get contact with Apple representative, use the Contact Us link : https://developer.apple.com/contact/topic/select
Jun ’25
Reply to JSONDecoder enum-keyed dictionary bug
They explain here a subtle behaviour (to say the least) of JSONEncoder. https://forums.swift.org/t/encoding-decoding-a-swift-dictionary-to-from-json/39989 A dictionary with Int or String key is encoded as dictionary. But with other type key, it is encoded as an array. That seems to be the case with the enum. I tested by catching error: do { let json = try JSONDecoder().decode(Json.self, from: jsonString.data(using: .utf8)!) print("JSON", json) } catch { print("Error", error) } and got the same error message: Error typeMismatch(Swift.Array<Any>, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "variations", intValue: nil)], debugDescription: "Expected to decode Array<Any> but found a dictionary instead.", underlyingError: nil)) As you noted, if you replace the key type by String: struct Json: Codable { let variations: [String: String] } Then you get the expected result: JSON Json(variations: ["plural": "tests", "singular": "test"])
Topic: App & System Services SubTopic: General Tags:
Jun ’25