Post

Replies

Boosts

Views

Activity

Reply to How can I reliably get the final restored window size on macOS when onAppear / viewDidAppear fires too early?
didAppear just means the view is loaded, not initialised. I once had a similar issue that I worked around as follows: Declared a firstAppearance property initially set to true In viewDidLayout, set to false run the setup code only if firstAppearance is true. Another option could be to run the setup code after a small delay (e.g. 0.2s) so that the size had time to be set. Hope that helps.
Topic: UI Frameworks SubTopic: General Tags:
3d
Reply to Please help
Your question is not clear. The client loaded the app in TestFly. So this is just for testing, not for sale. So what does he accuse you of ? Not having developed yourself ? Not meeting his spec ? The fact that an app has problem in TestFlight is not uncommon. That's the purpose of TestFlight to check for potential issues. Up to you to correct them now. AKAIK, there is nothing Apple can or will do in such a case. Up yo you to show the logs of the archiving sessions, or even showing some source code. But that's a question between you and your client.
2w
Reply to "Upload for App Store Connect" not getting past "Preparing to upload"
Could you confirm where it gets stuck precisely ? You select any iOS device (ARM 64) You archive You see the build in App Store Connect You try uploading: get stuck here Is it a new app or a new release of an existing app ? Did you check that build number is correct (increased compared to previous version) ? Did you try to recreate the archive ?
3w
Reply to Understanding SwiftUI toolbars
What does displayModeToggle do ? In the misbehaving code, I would also try to simplify, in order to localise the cause of error: @ToolbarContentBuilder private var windowToolbarContent: some ToolbarContent { ToolbarItem(placement: .navigation) { roomDirectoryButton } /* comment out if selectedRoomId != nil { ToolbarItem(placement: .secondaryAction) { toolbarTitleCapsule } } */ ToolbarItem(placement: .primaryAction) { showInspectorButton } } As this is code you reuse, did you ask to the code author ?
Topic: UI Frameworks SubTopic: SwiftUI
3w
Reply to Why is the Documentation full of Conundrums?
@SymphOmni It seems you didn't understand the goal of the exercise ? The purpose is to let you discover through practice the basic Swift concepts. In the case the dictionaries, a very important type in Swift. Here you may have noted that interestingNumbers is a dictionary: a series of entries, which are pairs called key (a string) and value (here an array), such as "Prime": [2, 3, 5, 7, 11, 13] The example shows that in the for loop, you explore the dictionary but don't need to know what the key is (because you don't use). as dark-as showed, if you need to use the key, change _ into a name as dataset, or key, or whatever you want. In another exercise, you could also iterate over the dictionary like this: let interestingNumbers = [ "Prime": [2, 3, 5, 7, 11, 13], "Fibonacci": [1, 1, 2, 3, 5, 8], "Square": [1, 4, 9, 16, 25] ] var largest = 0 var largestSet = "" for aLine in interestingNumbers { // get entries of dictionary as a whole for number in aLine.value { // value is the array, for each entry line if number > largest { largest = number largestSet = aLine.key // The key (the name) of the entry line } } } print (largest, "in", largestSet) More difficult to read, but exactly the same result. 25 in Square Exercise yourself by finding the smallest…
Mar ’26
Reply to Is it a bug in UIActivityViewController to Airdrop ?
I attach this log to the FB. Thanks for investigating. Failed to request default share mode for fileURL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf error:Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1796, _LSFunction=runEvaluator} Only support loading options for CKShare and SWY types. error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port App is being debugged, do not track this hang Hang detected: 4.19s (debugger attached, not reporting) Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port App is being debugged, do not track this hang Hang detected: 2.31s (debugger attached, not reporting)
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’26
Reply to Is it a bug in UIActivityViewController to Airdrop ?
I filed a bug report with an sample project and 2 files for testing. I confirm the problem. FB22253128 Here the message in FB (with the zipped sample project and 2 test files): Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs In this iOS app, I call UIActivityViewController to let user Airdrop files from the app. When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails. Removing those characters makes it work without problem. Steps to reproduce Build and load the app on iPhone transfer the 2 pdf files ('name accentué.pdf' and 'name plain.pdf' to the Documents folder of Test app (I did it in Finder on Mac with iPhone USB connected to the Mac). The 2 files are identical except their name. Run the app Tap 'Send by AirDrop name plain.pdf' and select AirDrop to Mac : Transfer OK Tap 'Send by AirDrop name accentué.pdf' and select AirDrop to Mac : Transfer fails
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’26
Reply to Waiting for review?
Welcome to the forum. But please note that the forum is to get help from other developers, not to contact the review team. Also note, that depending on the cause of rejection, new submission may take longer time. Did you explain in the message to the reviewer what you did to address the cause of first rejection ? Otherwise, you are more at risk for a new rejection.
Mar ’26
Reply to Build stuck in "In Review" for 29+ hours after 3.1.2(c) resubmission
Welcome to the forum, We are a small two-person team and the app is ready for launch. Hopefully, if you post to the appStore. 29 hours, but that's over the week end… Quite understandable. My last submission yesterday went into review after 22 hours. So you should get it pretty soon. Don't forget to close the thread once OK. PS: Guideline 3.1.2(c) 3.1.2(c) Subscription Information: Before asking a customer to subscribe, you should clearly describe what the user will get for the price. How many issues per month? How much cloud storage? What kind of access to your service? Ensure you clearly communicate the requirements described in Schedule 2 of the Apple Developer Program License Agreement.
Mar ’26
Reply to Where are the forums heading to ?
@darkpaw, I do agree. Those type of posts should go into a specific section and not clutter any other, including "allPosts". I will file a bug report about it, I think many of us should do it before the forums are totally spoiled. PS: I also think (or fear) that many developers now rely on ChatGPT or Claude to get help and don't mind to interact with other developers. Our world will insane, but that's a fact.
Mar ’26
Reply to How can I reliably get the final restored window size on macOS when onAppear / viewDidAppear fires too early?
didAppear just means the view is loaded, not initialised. I once had a similar issue that I worked around as follows: Declared a firstAppearance property initially set to true In viewDidLayout, set to false run the setup code only if firstAppearance is true. Another option could be to run the setup code after a small delay (e.g. 0.2s) so that the size had time to be set. Hope that helps.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
3d
Reply to How the application can be translated to different languages
In the settings of the app, do you see all languages when you select Region and Language ?
Replies
Boosts
Views
Activity
4d
Reply to Please help
Your question is not clear. The client loaded the app in TestFly. So this is just for testing, not for sale. So what does he accuse you of ? Not having developed yourself ? Not meeting his spec ? The fact that an app has problem in TestFlight is not uncommon. That's the purpose of TestFlight to check for potential issues. Up to you to correct them now. AKAIK, there is nothing Apple can or will do in such a case. Up yo you to show the logs of the archiving sessions, or even showing some source code. But that's a question between you and your client.
Replies
Boosts
Views
Activity
2w
Reply to "Upload for App Store Connect" not getting past "Preparing to upload"
Could you confirm where it gets stuck precisely ? You select any iOS device (ARM 64) You archive You see the build in App Store Connect You try uploading: get stuck here Is it a new app or a new release of an existing app ? Did you check that build number is correct (increased compared to previous version) ? Did you try to recreate the archive ?
Replies
Boosts
Views
Activity
3w
Reply to Understanding SwiftUI toolbars
So could you post complete code so that we can test on our own ? Which version of Xcode ? Is it on simulator or device ? In this case, which OS version ?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
3w
Reply to Understanding SwiftUI toolbars
What does displayModeToggle do ? In the misbehaving code, I would also try to simplify, in order to localise the cause of error: @ToolbarContentBuilder private var windowToolbarContent: some ToolbarContent { ToolbarItem(placement: .navigation) { roomDirectoryButton } /* comment out if selectedRoomId != nil { ToolbarItem(placement: .secondaryAction) { toolbarTitleCapsule } } */ ToolbarItem(placement: .primaryAction) { showInspectorButton } } As this is code you reuse, did you ask to the code author ?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
3w
Reply to error build: Command SwiftCompile failed with a nonzero exit code
@MMarcin Did you try a clean build folder ? That often clears this type of error. Otherwise, can you tell a bit more on the new features. have they anything specific compared to the rest of your app ?
Replies
Boosts
Views
Activity
3w
Reply to Initial presentation of popover hangs when shown from a button in the toolbar
Is it only in simulator or also on device ? Simulator may behave a bit differently, notably in terms of response time.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
4w
Reply to Window size of iOS app running on Mac
Thanks for the warning. I did limit use of the constraint when running on Mac.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Apr ’26
Reply to Why is the Documentation full of Conundrums?
@SymphOmni It seems you didn't understand the goal of the exercise ? The purpose is to let you discover through practice the basic Swift concepts. In the case the dictionaries, a very important type in Swift. Here you may have noted that interestingNumbers is a dictionary: a series of entries, which are pairs called key (a string) and value (here an array), such as "Prime": [2, 3, 5, 7, 11, 13] The example shows that in the for loop, you explore the dictionary but don't need to know what the key is (because you don't use). as dark-as showed, if you need to use the key, change _ into a name as dataset, or key, or whatever you want. In another exercise, you could also iterate over the dictionary like this: let interestingNumbers = [ "Prime": [2, 3, 5, 7, 11, 13], "Fibonacci": [1, 1, 2, 3, 5, 8], "Square": [1, 4, 9, 16, 25] ] var largest = 0 var largestSet = "" for aLine in interestingNumbers { // get entries of dictionary as a whole for number in aLine.value { // value is the array, for each entry line if number > largest { largest = number largestSet = aLine.key // The key (the name) of the entry line } } } print (largest, "in", largestSet) More difficult to read, but exactly the same result. 25 in Square Exercise yourself by finding the smallest…
Replies
Boosts
Views
Activity
Mar ’26
Reply to Is it a bug in UIActivityViewController to Airdrop ?
I attach this log to the FB. Thanks for investigating. Failed to request default share mode for fileURL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf error:Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1796, _LSFunction=runEvaluator} Only support loading options for CKShare and SWY types. error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." error fetching item for URL:file:///var/mobile/Containers/Data/Application/453B6EDB-3C76-4D2D-8355-702D4BD0263A/Documents/name%20accentue%CC%81.pdf : Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened." Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port App is being debugged, do not track this hang Hang detected: 4.19s (debugger attached, not reporting) Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false} elapsedCPUTimeForFrontBoard couldn't generate a task port App is being debugged, do not track this hang Hang detected: 2.31s (debugger attached, not reporting)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Is it a bug in UIActivityViewController to Airdrop ?
I filed a bug report with an sample project and 2 files for testing. I confirm the problem. FB22253128 Here the message in FB (with the zipped sample project and 2 test files): Context: Xcode 26.3, iOS 18.7.6 on iPhone Xs In this iOS app, I call UIActivityViewController to let user Airdrop files from the app. When trying to send a URL whose file name contains some characters like accentuated (-, é, '), the transfer fails. Removing those characters makes it work without problem. Steps to reproduce Build and load the app on iPhone transfer the 2 pdf files ('name accentué.pdf' and 'name plain.pdf' to the Documents folder of Test app (I did it in Finder on Mac with iPhone USB connected to the Mac). The 2 files are identical except their name. Run the app Tap 'Send by AirDrop name plain.pdf' and select AirDrop to Mac : Transfer OK Tap 'Send by AirDrop name accentué.pdf' and select AirDrop to Mac : Transfer fails
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Waiting for review?
Welcome to the forum. But please note that the forum is to get help from other developers, not to contact the review team. Also note, that depending on the cause of rejection, new submission may take longer time. Did you explain in the message to the reviewer what you did to address the cause of first rejection ? Otherwise, you are more at risk for a new rejection.
Replies
Boosts
Views
Activity
Mar ’26
Reply to Build stuck in "In Review" for 29+ hours after 3.1.2(c) resubmission
Welcome to the forum, We are a small two-person team and the app is ready for launch. Hopefully, if you post to the appStore. 29 hours, but that's over the week end… Quite understandable. My last submission yesterday went into review after 22 hours. So you should get it pretty soon. Don't forget to close the thread once OK. PS: Guideline 3.1.2(c) 3.1.2(c) Subscription Information: Before asking a customer to subscribe, you should clearly describe what the user will get for the price. How many issues per month? How much cloud storage? What kind of access to your service? Ensure you clearly communicate the requirements described in Schedule 2 of the Apple Developer Program License Agreement.
Replies
Boosts
Views
Activity
Mar ’26
Reply to Where are the forums heading to ?
@darkpaw, I do agree. Those type of posts should go into a specific section and not clutter any other, including "allPosts". I will file a bug report about it, I think many of us should do it before the forums are totally spoiled. PS: I also think (or fear) that many developers now rely on ChatGPT or Claude to get help and don't mind to interact with other developers. Our world will insane, but that's a fact.
Replies
Boosts
Views
Activity
Mar ’26