Post

Replies

Boosts

Views

Activity

Reply to How to unpulish the Mac version of an iOS app?
When you hover the mouse over the macOS-App "1.0 Bereit zum Verkauf", do you see a red "-" (delete) button? From https://help.apple.com/app-store-connect/en.lproj/static.html You can delete a platform if a build has never been uploaded for the platform you wish to delete. Additionally, at least one existing platform version needs to be in an editable app status. See App statuses. If the criteria is met, hover over the platform you wish to delete and click the delete button (–) that appears to the right of the platform. This is slightly confusing, but it works... There must be an editable version for another platform, for the delete button to show up. Like this (1.3.11 for iOS is editable, so I can delete the macOS version): Then the macOS version can be deleted.
Oct ’21
Reply to SwiftUI Image does not display image from existing file
I suspect your problem is with NSImage(byReferencing url:) Apple say: This method initializes the image object lazily and It does not attempt to retrieve the data from the specified URL or create any image representations from that data until an app attempts to draw the image or request information about it. and Because this method doesn’t actually create image representations for the image data, your app should do error checking before attempting to use the image I suggest that after... let image = NSImage(byReferencing: book.metadata.coverFile) ...you immediately check "image", and try to do something with it, to trigger the actual data retrieval. (It looks like just placing it in an Image(nsImage:) is not enough to do this.)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to DispatchSource compile error: Cannot assign value of type '()' to type 'DispatchSourceTimer?'
You are not showing all your code, but it looks like... self.timer is a DispatchSourceTimer dispatchTimer(timeInterval:handler:) has no return type ...so your assignment of dispatchTimer() to self.timer will not compile (you are trying to assign a closure, when a DispatchSourceTimer is expected). Perhaps you intended? class func dispatchTimer(timeInterval: Double, handler: @escaping (DispatchSourceTimer?) -> Void, needRepeat: Bool) -> DispatchSourceTimer { Then dispatchTimer() could return "timer", and the assignment would work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Does an officially downloaded App Store app always include a receipt?
The receipt data is found at Bundle.main.appStoreReceiptURL, and contains information about all in-app purchases in the app. This property always exists in an App Store app. It does not exist in a sandbox app (Xcode or TestFlight). Apple say: This property makes no guarantee about whether there is a file at the URL—only that if a receipt is present, that is its location.
Oct ’21
Reply to New Test Flight App
This is just my view, @Pete4Dev, But I don't think this is appropriate content for the forum. The forums are meant for code-level questions. Assuming your Salon app is a commercial product, are you trying to recruit app testers? Would it not be more suitable to do this on one of the many Freelancer websites? Or if you want people to test your app for free, then, well, I'm not sure where you would ask for that! Best regards, and no offence intended. (And of course, if Apple post here and say this is just fine and dandy, then okay.)
Oct ’21
Reply to Urgent: distributing release build by command line
I cannot add my developer account to XCode This is the problem that you need to solve. Can you successfully log in to App Store Connect (using your Apple Developer ID and password)? If so, then it should be possible to add this account to Xcode If not, then no other method of uploading the app is going to work (You should build and submit your app using Xcode 13, for best results with iOS 15)
Oct ’21
Reply to Xcode does not show my team.
In their team on App Store Connect, under "Users & Access"... ...you need to have been added with the correct permissions (for the tasks that you need to do, on the app or apps that you support). Typically, this could be: Developer App Manager Admin Sometimes, "Developer" does not give enough access, in which case you may need to be "App Manager". Role permissions reference: https://help.apple.com/app-store-connect/#/deve5f9a89d7
Oct ’21
Reply to Does CoreLocation already use QZSS or other GNSS in addition to GPS?
You said; it looks like only GPS is used in core location Apple say (in the Core Location Overview): The framework gathers data using all available components on the device, including the Wi-Fi, GPS, Bluetooth, magnetometer, barometer, and cellular hardware. I can't answer your actual question, but I thought it might be helpful to point out that your initial assumption is incorrect.
Oct ’21
Reply to How to unpulish the Mac version of an iOS app?
When you hover the mouse over the macOS-App "1.0 Bereit zum Verkauf", do you see a red "-" (delete) button? From https://help.apple.com/app-store-connect/en.lproj/static.html You can delete a platform if a build has never been uploaded for the platform you wish to delete. Additionally, at least one existing platform version needs to be in an editable app status. See App statuses. If the criteria is met, hover over the platform you wish to delete and click the delete button (–) that appears to the right of the platform. This is slightly confusing, but it works... There must be an editable version for another platform, for the delete button to show up. Like this (1.3.11 for iOS is editable, so I can delete the macOS version): Then the macOS version can be deleted.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Catalina, Mackbook Pro 2012 - Error: panic(cpu 0 caller 0xffffff802108d24c): Sleep transition timed out after 180 seconds
According to Apple, none of the 2012 MacBook Pro models are compatible with macOS Big Sur. See https://support.apple.com/en-gb/HT211238 So it is likely that, if you can get it to run at all, you will have unexpected problems.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Is it possible to turn Single App Mode off/on programtically?
What platform... macOS, iOS, iPadOS, tvOS?
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI Image does not display image from existing file
I suspect your problem is with NSImage(byReferencing url:) Apple say: This method initializes the image object lazily and It does not attempt to retrieve the data from the specified URL or create any image representations from that data until an app attempts to draw the image or request information about it. and Because this method doesn’t actually create image representations for the image data, your app should do error checking before attempting to use the image I suggest that after... let image = NSImage(byReferencing: book.metadata.coverFile) ...you immediately check "image", and try to do something with it, to trigger the actual data retrieval. (It looks like just placing it in an Image(nsImage:) is not enough to do this.)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to camera photo to binary
More information is needed. What is your camera? What format does it save images in?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to DispatchSource compile error: Cannot assign value of type '()' to type 'DispatchSourceTimer?'
You are not showing all your code, but it looks like... self.timer is a DispatchSourceTimer dispatchTimer(timeInterval:handler:) has no return type ...so your assignment of dispatchTimer() to self.timer will not compile (you are trying to assign a closure, when a DispatchSourceTimer is expected). Perhaps you intended? class func dispatchTimer(timeInterval: Double, handler: @escaping (DispatchSourceTimer?) -> Void, needRepeat: Bool) -> DispatchSourceTimer { Then dispatchTimer() could return "timer", and the assignment would work.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Does an officially downloaded App Store app always include a receipt?
The receipt data is found at Bundle.main.appStoreReceiptURL, and contains information about all in-app purchases in the app. This property always exists in an App Store app. It does not exist in a sandbox app (Xcode or TestFlight). Apple say: This property makes no guarantee about whether there is a file at the URL—only that if a receipt is present, that is its location.
Replies
Boosts
Views
Activity
Oct ’21
Reply to New Test Flight App
This is just my view, @Pete4Dev, But I don't think this is appropriate content for the forum. The forums are meant for code-level questions. Assuming your Salon app is a commercial product, are you trying to recruit app testers? Would it not be more suitable to do this on one of the many Freelancer websites? Or if you want people to test your app for free, then, well, I'm not sure where you would ask for that! Best regards, and no offence intended. (And of course, if Apple post here and say this is just fine and dandy, then okay.)
Replies
Boosts
Views
Activity
Oct ’21
Reply to Urgent: distributing release build by command line
I cannot add my developer account to XCode This is the problem that you need to solve. Can you successfully log in to App Store Connect (using your Apple Developer ID and password)? If so, then it should be possible to add this account to Xcode If not, then no other method of uploading the app is going to work (You should build and submit your app using Xcode 13, for best results with iOS 15)
Replies
Boosts
Views
Activity
Oct ’21
Reply to Unexpected non-void return value in void function error in function
You say: func returnusername() That is, your function returnusername returns no value (called "void") But in returnusername, you say: return username So there is a contradiction, hence the error message. You probably mean: func returnusername() -> String
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode does not show my team.
In their team on App Store Connect, under "Users & Access"... ...you need to have been added with the correct permissions (for the tasks that you need to do, on the app or apps that you support). Typically, this could be: Developer App Manager Admin Sometimes, "Developer" does not give enough access, in which case you may need to be "App Manager". Role permissions reference: https://help.apple.com/app-store-connect/#/deve5f9a89d7
Replies
Boosts
Views
Activity
Oct ’21
Reply to No puedo instalar Xcode en mi mackbook pro
No, you don't have enough space. Xcode needs a lot of free space to download, expand, and install. There are many threads about this issue, on this forum.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Can't figure out. how to convert Int to CGFloat
Try: let floatValue = CGFloat(intValue)
Replies
Boosts
Views
Activity
Oct ’21
Reply to Does CoreLocation already use QZSS or other GNSS in addition to GPS?
You said; it looks like only GPS is used in core location Apple say (in the Core Location Overview): The framework gathers data using all available components on the device, including the Wi-Fi, GPS, Bluetooth, magnetometer, barometer, and cellular hardware. I can't answer your actual question, but I thought it might be helpful to point out that your initial assumption is incorrect.
Replies
Boosts
Views
Activity
Oct ’21