Post

Replies

Boosts

Views

Activity

Issue with State Persistence in Swift Testing @Suite
Hello everyone, I’m encountering an issue with my Swift Testing suite where state changes made in one test method do not persist to another. I am using Swift’s @Suite and @Test annotations to group and serialize my tests, but it seems that the state is not being carried over between the tests. The second function fails with: Expectation failed: (string → nil) != nil Here is my example code: import Testing @Suite(.serialized) struct createCheckTests { var value = 25 var string: String? = nil @Test("Create string") mutating func stringCreation() { #expect(value > 0) string = "Value is: \(value)" } @Test("Check string") func stringCheck() { #expect(string != nil, "The string is nil") print("\(String(describing: string))") } } What is the correct way to approach such a scenario where I want to test two functions that are related, one to generate some value and one to check that generated value against it initial value using Suites to group and isolate them from other tests? Thanks.
2
0
175
1w
Screen Time
The screen time no longer works, because when I try to enter de code for another 15 minutes, it approves it and then the screen disappears with "Time Limit". The issue is I can't do anything in the app itself and when I het out, it says again "Time Limit"
0
0
88
1w
Enrollment to Developer Program - No Contact Concerns
Seems a common issue that after paying for the developer program, Apple makes no contact for an unnecessarily long period of time. It's been a day and I'm already concerned with the lack of support despite my emails. I've got deadlines I need to adhere to. If anyone, or any support account could reassure that this will be completed in a timely manner, I would greatly appreciate it. Noticed this was an issue last year, given the minimal attention it seems to have received, this cannot be the standard. Thanks in advance
1
0
109
1w
Xcode rebuilds entire project when nothing has changed
Using Xcode 15.3 on a Mac M1 with MacOS 14.5. The project consists of C++, ObjC and Swift source files. CocoaPods is used for several libraries. CMake is used to generate the build files etc.. The issue is that any time I attempt to run the application (on any iOS device), it will always rebuild from scratch, which takes a considerable amount of time for this very large project. This occurs without any changes to the project; no source code changes, no resource file changes, nothing at all. Would anyone have any idea as to why this would be happening? Is there any diagnostic information I can enable in Xcode to show me exactly what changes it has detected, or what reason it may have for doing a full rebuild?
0
0
54
1w
Can the NSPersistentCloudKitContainer mirror the data from the cloudKit public database to the local Core Data if the user is not logged in?
I'm currently syncing Core Data with the CloudKit public database using NSPersistentCloudKitContainer. The app starts with an empty Core Data store locally and at the app launch it downloads the data from CloudKit public database to the Core Data store, but this can only be accomplished if the user is logged in, if the user is not logged, no data gets downloaded and I get the error below. Can the NSPersistentCloudKitContainer mirror the data from the CloudKit public database to the local Core Data even if the user is not logged in? Can someone please confirm this is possible? The reason for my question is because I was under the impression that the users didn't need to be logged to read data from the public database in CloudKit but I'm not sure this applies to NSPersistentCloudKitContainer when mirroring data. I know I can fetch data directly with CloudKit APIs without the user beign logged but I need to understand if NSPersistentCloudKitContainer should in theory work without the user being logged. I hope someone from Apple sees this question since I have spent too much time researching without any luck. Error Error fetching user record ID: <CKError 0x600000cb1b00: "Not Authenticated" (9); "No iCloud account is configured"> CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _performSetupRequest:]_block_invoke(1192): <NSCloudKitMirroringDelegate: 0x600003b00460>: Failed to set up CloudKit integration for store: <NSSQLCore: 0x10700f0d0> (URL: file:///Users/UserName/...
4
0
180
1w
Why does it ask me to $ upgrade my iCloud storage every time I upgrade my iOS, even though I’m on a paid APPLE ONE FAMILY subscription plan?
Keep being asked to upgrade to iCloud+ every time there’s a iOS update, even though I’m on a family plan. It disconnects me and my family and tries to upsell us every time again. We have to manually switch back. Very deceptive and pretty sketchyz adding that since the iOS 18 beta upgrade, I have also been unable to get back onto my family plan for iCloud+ storage. The option to use the family plan has now completely disappeared and my only option is to buy another plus package which obviously isn’t required since I already subscribe to Apple One. Hopefully a fix for this comes out soon. It’s hijacking our phones now and won’t let us back up any materials even though I’ve paid for the extra space. Apple, you really need to look into the way it kicks people off their family plan storage every time there’s an iOS upgrade as well because for some people, I’m sure they are clicking on your buy more space button, since it’s much more prominent than finding the back door way to rejoin the family plan. If that’s an intentional way to trick people into getting an upsell you’re going to end up with lawsuits. It’s not a very cool UX experience.
0
0
97
1w
Multiple Xcode warning messages after Xcode 15.4 / iOS 17.5 upgrade
Ever since Xcode updated yesterday I continually get the following warning message coming up on the console, with each consecutive - and identical - message highlighted in yellow & then red. The message reads: "CoreUI: _Bool CUIValidateIdiomSubtypes(NSInteger, NSUInteger *) passed a device subtype '2752' and idiom '2':pad that are not a matching pair, subtype is not valid with given idiom. Assuming subtype should be 0 instead." The program still runs but it's rather annoying, plus I'd like to know the cause. Xcode: 15.4 / iOS (in Xcode) 17.5 Any ideas?
0
0
110
1w
Unable to enroll in Apple Developer program - stuck on Order Acknowledged email
Hey everyone, For the past two weeks I've been unsuccessfully trying to sign up for Apple Developer program. I have entered the basic information, and have been asked to pay the $99 membership fee. After filling my payment information, which is correct and identical to the basic information I added, I've received an "Order Acknowledged" email, saying that Apple will process my order within two business days. For almost two weeks, nothing is happening. Apple did not attempt to charge my card, as confirmed by my bank. I have tried different cards from different banks, all in my name with correct information, to no avail. After doing a bit of Googling, I've seen that some people have enrolled through Apple Developer iOS app. Unfortunately, the app tells me that enrollment for my Apple ID is not available through the app. I have created the support ticket, but Support is not responding to me for over a week. Any help or advice would be greatly appreciated. I am willing to provide any additional information or proof to help resolve this issue.
1
1
127
1w
Options for switching between incorporating binary and/or source code within an app
Our company is going to develop an iOS library of functionality for inclusion in several apps, some of the apps will be developed in-house and some externally. When the library is included in external apps the source code shouldn't be visible. When the library is included in internal apps, having the option to view and step through the code within the library will be invaluable for debugging. How could I set things up so that two forms of the library can be easily generated - one exposing source code and the other not. Ideally they should be capable of being incorporated within the apps in the same manner regardless of if the source code is expose or not Is that possible? I looked at Swift Packages, but it seems its for distribution of source code only, and its not possible to hide the source code. However, conversely, a framework only contains binary and no source code. Is there any other option?
0
0
82
1w
Sticker Pack App Not Working in Sim
Hello, Im trying to create a sticker pack app. I have all the png in correct sizes however when running a simulation it does not show up. objc[19306]: Class CKDetailsTUConversationCell is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit (0x7ff84276a840) and /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSMS.app/MobileSMS (0x103257b98). One of the two will be used. Which one is undefined. mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory] mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory] setAllowableTypes_block_invoke:1242: *** CGImageSourceSetAllowableTypes - ignoring unknown: 'public.avci' Received Connection Invalid mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory] Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application. [com.apple.MobileSMS:A5499A70-2351-4FAD-809D-DFD28B804635] Error when getting current app configuration for action identifier ConversationListFocusFilterAction, error='Error Domain=DNDErrorDomain Code=1007 "No current action is available. Supply the caller with the default." UserInfo={NSLocalizedDescription=No current action is available. Supply the caller with the default.}' Calling -viewWillAppear: directly on a view controller is not supported, and may result in out-of-order callbacks and other inconsistent behavior. Use the -beginAppearanceTransition:animated: and -endAppearanceTransition APIs on UIViewController to manually drive appearance callbacks instead. Make a symbolic breakpoint at UIViewControllerAlertForAppearanceCallbackMisuse to catch this in the debugger. View controller: <CKSearchViewController: 0x10886a400> XPC error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process.} Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site. Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site. Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site. Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site. Duet query failed: Couldn’t communicate with a helper application. Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application. UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once. Error registering for delegate callbacks. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable} Error retrieving subscription for handle. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable} handle: <SKHandle: 0x600000005df0; handleString = "+18885551212"> Error fetching subscription service for handle: "+18885551212" Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable} Checked bag access permission -- allowed? YES {hasMachAccess: YES, hasEntitlements: YES} failed to create XPC connection Unknown invokeXPCSynchronousCallWithBlock error: Error Domain=TransparencyErrorXPC Code=-108 "failed to create XPC connection" UserInfo={NSLocalizedDescription=failed to create XPC connection} API MISUSE: Resuming an NSURLSessionTask with nil URL. Task .<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x600000c93720 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<1>" ), NSLocalizedDescription=unsupported URL} Requested keyboard snapshot but UIKeyboard.usesInputSystemUI returned NO. Failed to get pid info for pid 0: Operation not permitted Remote app card controller com.apple.messages.MSMessageExtensionBalloonPlugin:0000000000:com.apple.Stickers.UserGenerated.MessagesExtension timed out during delayed presentation Failed to get pid info for pid 0: Operation not permitted unhandled process MobileSMS
1
0
104
1w
Xcode Organizer Does Not Symbolicate Crash Reports
Crash reports in Xcode Organizer are only partially symbolicated. Frames for the OS are symbolicated but the app is not. I've followed the guidance here but app frames are still not symbolicated. https://forums.developer.apple.com/forums/thread/690094 We archive, export ipa and upload our iOS app using the command line instead of with Xcode UI. Archive xcodebuild -project myproject.xcodeproj -scheme myproject -archivePath build/myproject_results.xcarchive archive Export IPA xcodebuild -exportArchive -archivePath build/myproject_results.xcarchive -exportPath ./build/ipa/ -exportOptionsPlist /path/to/ExportOptions.plist In ExportOptions.plist we set uploadSymbols to true <key>uploadSymbols</key> <true/> Upload xcrun altool --upload-app -t ios -f $ipa_path -u $appstore_connect_username -p $appstore_connect_password When inspecting the .ipa file, I see .symbols files in the Symbols folder. I verified that the UUID from our dSYM matches one of the UUID .symbols files as well. How would I fix or further debug this issue?
0
0
89
1w