Post

Replies

Boosts

Views

Activity

Reply to Background tasks to loaded updated products
"Can we trust that this update will be executed on the defined schedule". Absolutely not, read the documentation more closely. It'll probably run, but you can't specify when, nor be sure it will. You can also just update it when the user loads the app? Surely it's not going to take hours to download, or even minutes, even if there's a lot of data. You can start a background thread when the user launches the app so it wouldn't hang the ui.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to Xcode not showing compile errors when app crashes
You have a major misunderstanding about compilation errors, if you had a compilation error then your app would not even run. A compilation error means there is a syntactical error in your code, and it is nothing to do with a run time error. You probably have an exception, in which case add code like this at the start of your app and then add a breakpoint to the logging line. The breakpoint will be hit when you run the app if that is the problem, then you can see the call stack. func registerExceptionHandler() { NSSetUncaughtExceptionHandler { (exception) in NSLog("‼️‼️ Uncaught exception (String(describing: exception.reason))") } } You can also extract a crash stack from the phone using Xcode
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to Changes to light/dark mode aren't detectable within a notification service extension unless the phone is restarted
And here's another problem with notification service extensions is if it has the entitlement com.apple.developer.usernotifications.filtering then it can NEVER detect the light/dark mode because com.apple.developer.usernotifications.filtering ALWAYS returns light. This isn't the first time I've seen com.apple.developer.usernotifications.filtering interfere with things, this is now the 3rd bug I've found that only manifests when a NSE has this entitlement.
Oct ’23
Reply to iPhone 15 (iOS17) Activation extension error (CallKit)
What sort of problems are people having? If you have an error in what/how you are registering the numbers in the extension then that can manifest in users being able to initially turn on the extension in settings. If people have just downloaded your app for the first time then you presumably don't have content yet though? You said you attempted to reproduce in the simulator.This feature doesn't exist in the simulator. Are you therefore saying you released this without fist testing on hardware?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to New iPhone 15 Pro - can't enabled Developer Mode (because its not there) and XCode doesn't recognize the device
Make sure you don't have VPN enabled - VPN can radically affect in a bad way Xcode's ability to connect with, detect a phone, or accurately detect a phone's connected state. If ever you're in a situation where something like Apple Configurator can see a device and says its connected, but Xcode disagrees with this, then its probably VPN.
Topic: App & System Services SubTopic: Hardware Tags:
Oct ’23
Reply to Background Task Only Executes Once or Twice, Not at Regular Intervals.
Background tasks don't behave as you want it to, there's no such thing as deterministic background scheduling in iOS, it simply just does not exist. The time you specify to run is not an absolute time, it is an earliest possible time, totally not the same thing. The documentation says "The delay between the time you schedule a background task and when the system launches your app to run the task can be many hours." That does not go far enough in explanation, not only can it be many hours later than you specified, the OS may not run the task at all, there are no guarentees it will get run. If the user isn't regularly engaging with your app, then the OS will stop running the tasks. This question comes up time and time and time again, people want to know how to regularly perform a task at repeating deterministic internals in the background, well you cannot, iOS just does not provide the ability to do that.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to Is Macbook air m1 base version-8gb ram,256gb ssd enough?
I have one, it's fine for running Xcode and large projects. Though browsers/webpages can take up quite a lot of memory, which maybe can topple things over the edge sometimes if you have lots going on. Nobody can comment on the hard drive space and how much you might need, certainly enough for development, it's what else you're using the MacBook for that is relevant.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to Is this crash due to too much logging?
And a little more that couldn't fit in the original post Thread 0 crashed with ARM Thread State (64-bit): x0: 0xfffffffffffffffc x1: 0x0000000000000000 x2: 0x0000000000005d02 x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x000000016bb30d20 x6: 0x0000000000000032 x7: 0x00000000000a0400 x8: 0x0000000000005d02 x9: 0x0000000000005d03 x10: 0x0000000000000200 x11: 0x0000000000000003 x12: 0x0000000000000003 x13: 0x00000000001ff800 x14: 0x00000000000007fb x15: 0x00000000b620b829 x16: 0x0000000000000203 x17: 0x00000001f63c25e0 x18: 0x0000000000000000 x19: 0x0000000000000103 x20: 0x0000000000000000 x21: 0x00000001f4c74048 x22: 0x0000000001000002 x23: 0x0000000000005d02 x24: 0x0000000000000000 x25: 0x00000000ffffffff x26: 0x0000000000000103 x27: 0x000000019858f17c x28: 0x000000016bb31128 fp: 0x000000016bb30dc0 lr: 0x00000001fe05efb0 sp: 0x000000016bb30d80 pc: 0x00000001dd27b7dc cpsr: 0x40001000 far: 0x0000000b9c861208 esr: 0x56000080 Address size fault
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’23
Reply to best way upload files to windows server in swiftui
https://developer.apple.com/videos/play/wwdc2023/10006/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to How to use Testflight App parallel to Appstore Version
They both have the same bundle id so you can't. The only way to do so would be to temporarily change the bundle id of the TF version. Why do you need to have both installed simultaneously? You say "we" so surely you must have more than one phone? So why do both versions have to be on the same phone?
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15 Issue: React Native App Won't Run or Build
You don't say what version of RN you're using. There's several issues people encountered when first using Xcode 15 https://github.com/facebook/react-native/issues/37748. https://stackoverflow.com/questions/77192195/react-native-0-71-8-build-failed-on-xcode-15
Replies
Boosts
Views
Activity
Oct ’23
Reply to Background tasks to loaded updated products
"Can we trust that this update will be executed on the defined schedule". Absolutely not, read the documentation more closely. It'll probably run, but you can't specify when, nor be sure it will. You can also just update it when the user loads the app? Surely it's not going to take hours to download, or even minutes, even if there's a lot of data. You can start a background thread when the user launches the app so it wouldn't hang the ui.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode not showing compile errors when app crashes
You have a major misunderstanding about compilation errors, if you had a compilation error then your app would not even run. A compilation error means there is a syntactical error in your code, and it is nothing to do with a run time error. You probably have an exception, in which case add code like this at the start of your app and then add a breakpoint to the logging line. The breakpoint will be hit when you run the app if that is the problem, then you can see the call stack. func registerExceptionHandler() { NSSetUncaughtExceptionHandler { (exception) in NSLog("‼️‼️ Uncaught exception (String(describing: exception.reason))") } } You can also extract a crash stack from the phone using Xcode
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Changes to light/dark mode aren't detectable within a notification service extension unless the phone is restarted
And here's another problem with notification service extensions is if it has the entitlement com.apple.developer.usernotifications.filtering then it can NEVER detect the light/dark mode because com.apple.developer.usernotifications.filtering ALWAYS returns light. This isn't the first time I've seen com.apple.developer.usernotifications.filtering interfere with things, this is now the 3rd bug I've found that only manifests when a NSE has this entitlement.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Call Logs on two devices with same appleid
This is a developer forum, not an Apple user complaint forum. But maybe you have just got the Call on Other Devices feature turned on, which absolutely is turnoff able in iOS 17. I have 7 iPhones with iOS 17 with the same account, the call history is not synchonized on any of them.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to iPhone 15 (iOS17) Activation extension error (CallKit)
What sort of problems are people having? If you have an error in what/how you are registering the numbers in the extension then that can manifest in users being able to initially turn on the extension in settings. If people have just downloaded your app for the first time then you presumably don't have content yet though? You said you attempted to reproduce in the simulator.This feature doesn't exist in the simulator. Are you therefore saying you released this without fist testing on hardware?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to New iPhone 15 Pro - can't enabled Developer Mode (because its not there) and XCode doesn't recognize the device
Make sure you don't have VPN enabled - VPN can radically affect in a bad way Xcode's ability to connect with, detect a phone, or accurately detect a phone's connected state. If ever you're in a situation where something like Apple Configurator can see a device and says its connected, but Xcode disagrees with this, then its probably VPN.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15.1 fail to upload build
Is b1 a non-negative integer
Replies
Boosts
Views
Activity
Oct ’23
Reply to How to identify when a SIM is changed in iPhone
There is an API to obtain the phone number(s) in the phone and whether a number is active or not. However it's a carrier api, this means Apple allows apps to use it provided they are developed by a carrier. Presumably you are not a carrier, therefore there is no way you can determine the phone number nor when a sim is changed.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Background Task Only Executes Once or Twice, Not at Regular Intervals.
Background tasks don't behave as you want it to, there's no such thing as deterministic background scheduling in iOS, it simply just does not exist. The time you specify to run is not an absolute time, it is an earliest possible time, totally not the same thing. The documentation says "The delay between the time you schedule a background task and when the system launches your app to run the task can be many hours." That does not go far enough in explanation, not only can it be many hours later than you specified, the OS may not run the task at all, there are no guarentees it will get run. If the user isn't regularly engaging with your app, then the OS will stop running the tasks. This question comes up time and time and time again, people want to know how to regularly perform a task at repeating deterministic internals in the background, well you cannot, iOS just does not provide the ability to do that.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Is Macbook air m1 base version-8gb ram,256gb ssd enough?
I have one, it's fine for running Xcode and large projects. Though browsers/webpages can take up quite a lot of memory, which maybe can topple things over the edge sometimes if you have lots going on. Nobody can comment on the hard drive space and how much you might need, certainly enough for development, it's what else you're using the MacBook for that is relevant.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Is this crash due to too much logging?
And a little more that couldn't fit in the original post Thread 0 crashed with ARM Thread State (64-bit): x0: 0xfffffffffffffffc x1: 0x0000000000000000 x2: 0x0000000000005d02 x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x000000016bb30d20 x6: 0x0000000000000032 x7: 0x00000000000a0400 x8: 0x0000000000005d02 x9: 0x0000000000005d03 x10: 0x0000000000000200 x11: 0x0000000000000003 x12: 0x0000000000000003 x13: 0x00000000001ff800 x14: 0x00000000000007fb x15: 0x00000000b620b829 x16: 0x0000000000000203 x17: 0x00000001f63c25e0 x18: 0x0000000000000000 x19: 0x0000000000000103 x20: 0x0000000000000000 x21: 0x00000001f4c74048 x22: 0x0000000001000002 x23: 0x0000000000005d02 x24: 0x0000000000000000 x25: 0x00000000ffffffff x26: 0x0000000000000103 x27: 0x000000019858f17c x28: 0x000000016bb31128 fp: 0x000000016bb30dc0 lr: 0x00000001fe05efb0 sp: 0x000000016bb30d80 pc: 0x00000001dd27b7dc cpsr: 0x40001000 far: 0x0000000b9c861208 esr: 0x56000080 Address size fault
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
@eskimo People running React Native can't turn off Wifi on the iPhone. Metro, a fundamentally integral and important part of running/debugging React Native applications, needs Wifi enabled when connected via Cable in order to function.
Replies
Boosts
Views
Activity
Oct ’23