Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post marked as solved
1 Replies
36 Views
There's talk of a "Sales and Trends" report somewhere but I can't find it in App Store Connect. I have the "Access to Reports" permission. https://help.apple.com/app-store-connect/#/dev183adc0b6 doesn't have any links or specify any required permissions. Exactly what do I need to do to get these basic stats?
Posted
by
Post not yet marked as solved
0 Replies
7 Views
Hi, ich habe nach folgender Anleitung versucht ein Text classifier model zu machen.Allerdings scheitert dies daran, das die evaluation() Funktion nicht funktioniert.Den Error den ich (in SwiftPlayground) bekomme ist: No exact matches in call to instance method 'evaluation' Hier ist der Code, den ich verwende: if #available(iOSApplicationExtension 15.0, *) {         let data = try! MLDataTable(contentsOf:  fileLiteral(resourceName: "TestData.json"))          let (trainingData, testingData) = data.randomSplit(by: 0.8, seed: 5)                  let sentimentClassifier = try! MLTextClassifier(trainingData: trainingData,                                                        textColumn: "text",                                                        labelColumn: "label")         // Training accuracy as a percentage         let trainingAccuracy = (1.0 - sentimentClassifier.trainingMetrics.classificationError) * 100         // Validation accuracy as a percentage         let validationAccuracy = (1.0 - sentimentClassifier.validationMetrics.classificationError) * 100         let evaluationMetrics = sentimentClassifier.evaluation(on: testingData)//Error hier         let evaluationAccuracy = (1.0 - evaluationMetrics.classificationError) * 100                  let metadata = MLModelMetadata(author: "No One",                                        shortDescription: "A model trained to classify movie review sentiment",                                        version: "1.0")         try! sentimentClassifier.write(to: URL(fileURLWithPath: Bundle.main.path(forResource: "MODEL", ofType: "mlmodel")!),                                       metadata: metadata)     } else {         print("dein Gerät erfüllt nicht die Bedingungen für dieses Programm")     } vielen Dank im Voraus (:
Posted
by
Post not yet marked as solved
0 Replies
11 Views
Hi, I am working on implementing new Screen Time API (from WWDC 22) in my app and I am trying to show app icons in the report by using Label(:ApplicationToken) initialiser and it works fine. However, all the app icons are very small unlike in the video from WWDC. If you take a look on the screenshot, I have app icons like on the right-most phone, but want smith like on the left-most. I tried to adjust the frame and font, but the only thing that works is scaleEffect, but, as you can imagine, the quality of the icon is terrible in this case. Apple's documentation is also not helping, so I was wondering how can I make this app icons bigger?
Posted
by
Post not yet marked as solved
1 Replies
29 Views
I've been using TestFlight with my app for weeks. I just uploaded a new update to App Store Connect and got the email that the new version is available for TestFlight. I open TestFlight and can see the new version of the app with "Update" next to it. At first, I got an error that said "Beta Expired". Now, test flight says "Install" next to the app and it if pressed it runs like it installing, but nothing happens, it then returns to the "Install" status. I've tried removing and re-inviting the user, delete and reinstall the app from app store, and deleting and reinstalling TestFlight. Nothing works. Can anyone help?
Posted
by
Post not yet marked as solved
1 Replies
29 Views
Attempting to test my application, but after uploading and processing the file will not show up in testflight and I get a little notification under the user saying no builds available.
Posted
by
Post not yet marked as solved
1 Replies
14 Views
Here is a video of my healthcare provider that includes consultations with a dietitian: https://www.youtube.com/watch?v=rTujudQ_-zE Does Apple 30% apply to telemedicine visits like my product?
Posted
by
Post not yet marked as solved
1 Replies
17 Views
I would like to render an html file (html string) to a png file (and save png to iCloud Drive). I am using WKWebView() with WKNavigationDelegate to check whether web view didFinish loading. WKWebView is working fine. Once WKWebView loading didFinish I would like to render the view to an UIimage (and then save as png file) - and here I am currently struggling to generate UImage with ImageRenderer(content: content) Any Idea how to render the webView to png OR any another approach to render HTML to png? Thanks a lot Eric
Posted
by
Post not yet marked as solved
0 Replies
21 Views
I have a NavigationSplitView in my app, I have an @State variable in my detail view that gets created in init. When I select something from the sidebar and the detail view renders, at first everything looks ok. But when I select a different item on the sidebar, the contents of the @state variable don't get recreated. Using the debugger I can see the init of the detail view get called every time I select a new item in the sidebar, and I can see the @State variable get created. But when it actually renders, the @State variable still contains the previous selection's values. I've reduced this problem to a test case I'll paste below. The top text in the detail view is a variable passed in from the sidebar, and the second line of text is generated by the @State variable. Expected behavior would be, if I select "one" the detail view would display "one" and "The name is one". If I select "two" the detail view would display "two" and "The name is two". Instead, if I select "one" first, it displays correctly. But when I select "two", it displays "two" and "The name is one". Note that if I select "two" as the first thing I do after launching the app, it correctly displays "two" and "The name is two", but when I click on "one" next, it will display "one" and "the name is two". So the state variable is being set once, then never changing again, Here's the sample code and screenshots: import SwiftUI struct Item: Hashable, Identifiable { var id: Self {self} let name: String } struct ContentView: View { var items: [Item] @State private var selectedItem: Item? = nil init() { self.items = [Item(name: "one"), Item(name: "two"), Item(name: "three")] } var body: some View { NavigationSplitView{ List(selection: $selectedItem) { ForEach(items) { item in Text(item.name) } } } detail: { if let name = selectedItem?.name { DetailView(name: name) } else { Text("Select an item") } } } } struct DetailView: View { @State var detailItem: DetailItem var name: String init(name: String) { self.name = name _detailItem = State(wrappedValue: DetailItem(name: name)) } var body: some View { VStack { Text(name) Text(detailItem.computedText) } } } struct DetailItem { let name: String var computedText: String { return "The name is \(name)" } }
Posted
by
Post not yet marked as solved
0 Replies
12 Views
I have an app which uses MDM settings pushed from Miradore. I can read out the settings using: NSDictionary *serverConfig = [[NSUserDefaults standardUserDefaults] dictionaryForKey:"com.apple.configuration.managed"]; I want to add an observer to only trigger a function when "com.apple.configuration.managed" is changed and no other NSUserDefaults value. Currently the observer is triggered for all NSUserDefaults changes. The code for this that I have is: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(readDefaultsValues:) name:NSUserDefaultsDidChangeNotification object:nil]; Does anyone know how to only observe changes to "com.apple.configuration.managed"?
Posted
by
Post not yet marked as solved
0 Replies
53 Views
The App Store is broken for watchOS developers. It's really unfortunate because I love my Apple Watch, have a ton of watchOS ideas, want to develop them but I keep getting blocked and slowed down by reviewers who review watchOS apps but apparently don't even have a Watch. Instead of takign the time to read and understand my clarification, they just send generic, copy-paste rejection reasons that reflect that they didn't read what I wrote to them at all. I have an app on the App Store for watchOS owners. The idea is that you have content on the Watch, but the iOS app is a dashboard to control what you see on watchOS. It's now been multiple times that the reviewer has rejected me because they bought the IAP, looked at iOS, didn't see the content on iOS, and just rejected me. I put in big bold words "THE CONTENT IS ON THE WATCH". I actually put that message more for the App Store reviewers, because my customers are not confused by the concept, only the reviewers are. Yet I'm once again in the appeal process because the reviewers said "we don't see the IAP content". They even highlighted an area right above my big bold explanation. Anyone else run into this frustration? Is there any way to fix it? I'm thinking I'll add "stub" iOS content that the reviewer looks at. It just seems unfortunate that Apple is pushing me to develop content to make the reviewers happy rather than prioritizing the end-users, all because the reviewers aren't diligent enough to look Watch content on watchOS apps.
Posted
by
Post not yet marked as solved
0 Replies
14 Views
Today I was surprised that the latest version of Three.js (browser based 3D Engine) actually supports a transmission property for transparent materials that looks pretty good and is really performant: So far I have only used this material property when rendering in Blender, not in a realtime engine. But if THREE can run this at 60fps in the browser, there must be a way of achieving the same in ARKit/SceneKit/RealityKit? I just haven't found anything in the SCNMaterial documentation about Transmission nor anyone mentioning relevant shader modifiers. Especially if we want to present objects with frosted glas effects in AR this would be super useful? (The Three.js app for reference: https://q2nl8.csb.app/ and I learned about this in an article by Kelly Mulligan: https://tympanus.net/codrops/2021/10/27/creating-the-effect-of-transparent-glass-and-plastic-in-three-js/)
Posted
by
Post not yet marked as solved
0 Replies
18 Views
I have had an App rejected by App Connect with the reason that it crashed on launch when using an iPad. They have sent me a crash report that I think suggests I have a run-time issue although I have no idea what could be causing it. I have run the app on an actual iPad and it launches perfectly. I understand that the problem occurs in Thread 0, but I was also hoping for a Swift line number. I would really appreciate help with what the issue might be. Here is a link to the crash report https://developer.apple.com/forums/content/attachment/0f48e354-6d33-4fd2-abc0-9a241a497e35
Posted
by
Post not yet marked as solved
0 Replies
15 Views
I wanted to use deviceActivity target (File->New->Target). A package was created with filename "TotalActivityView". But i am getting this error while trying to preview it. ERROR: Cannot preview in this file ".appex is an unsupported extension" How do I use the deviceActivity target in my project?
Post not yet marked as solved
0 Replies
17 Views
I’m developing an application, which requires execution of authorized privileged operations. Hence, the application needs to install its helper tool in /Library/PrivilegedHelperTools using SMJobBless() API and so on… The standard procedure, explained in numerous examples and sample codes on Apple Developer web site and elsewhere. This is not the first time I do that, so I did everything necessary to make it work. And it works perfectly; the helper tool is successfully verified and installed, privileged operations are successfully being executed upon authorization. However, one thing bothers me and that is General > Login Items in the latest (and renamed) System Settings.app in Ventura. It allows user to manually enable/disable installed login items and helper tools (background items). My problem is that my helper tool appears in the list with my full name (Dragan Milic), probably extracted from the signing Developer ID Application: certificate, not with the name (and icon) of the application which verified/installed it. At the same time, some other items appear with the application name and icon. Please take a look at the attached picture below: I tried all I could think of to make the helper tool to appear with name/icon of the parent application, but without success. Using codesign and otool, I examined a bit some of the other applications and their helper tools, which correctly appear with application name/icon and I can't see much differences from my own, apart form different bundle identifiers and developer's signing certificates. I'd be really, sincerely thankful if someone could help me solving this, as I've been banging my head agains it for more than a day. Thanks very much in advance. -- Dragan
Posted
by
Post not yet marked as solved
0 Replies
18 Views
When running the UI tests of our Catalyst app on macOS13 with Xcode 14.1, the runner immediately fails with the following (paths and IDs removed): Assertions: System: Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle at (...) (Underlying Error: The bundle “UITests” couldn’t be loaded. The bundle couldn’t be loaded. Try reinstalling the bundle. dlopen(...): tried: '...' (no such file), '...' (no such file), '...' (no such file), '...' (code signature invalid in <...uuid...> '...' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00B61A60, codeBlobSize=0x0001BB10), '...' (no such file), '...' (code signature invalid in <...uuid...> '...' (errno=1) sliceOffset=0x00000000, codeBlobOffset=0x00B61A60, codeBlobSize=0x0001BB10)) We use manual code signing. Everything works on macOS 12.6.1 with either Xcode 13.4.1 or Xcode 14.1, just not on macOS 13. Did anything change regarding code signing and Catalyst in the new macOS?
Posted
by
Post not yet marked as solved
0 Replies
13 Views
I recently came across a program that used data tables to invert the display, however it was a windows only application and I am wondering how I can write a similar thing for Mac, or if there is one already available. The app and config file is attached below so you can sort of dissect how it works Config File: [negativescreen.conf](https://developer.apple.com/forums/content/attachment/f4b67ed7-fa71-4ee6-9c0d-18febe2c3381) Readme file: [README.md](https://developer.apple.com/forums/content/attachment/86bd72f6-46c9-42d5-a925-561f75f24ae8) Window$ Executable: [NegativeScreen.exe](https://developer.apple.com/forums/content/attachment/a4478bd5-d5c7-41dd-9302-0e1a929372c2)
Posted
by
Post not yet marked as solved
0 Replies
16 Views
Hey, when i am archiving my app it takes forever since Xcode 14. All i see is it is trying to "Preparing Editor Functionality" Looking at some warnings i find these: Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. Are those issues related?
Posted
by
Post not yet marked as solved
0 Replies
19 Views
I’m not sure if anyone else is having an issue with their camera app. I noticed there is another software update for iOS (16.1.2) that I haven’t updated yet - the new update mentions nothing about fixing this issue. When I open the camera app, my camera works, but as soon as I go to take a picture it starts to change between modes uncontrollably. The camera keeps glitching, sometimes it snaps a photo & sometimes it doesn’t even register that I’ve pressed the button. Photos come out fine when they do capture, but I can’t seem to get the camera to stop glitching this way. This is very frustrating and I don’t understand why it keeps switching between camera modes? Just posting to see if anyone else has had this issue & if iOS 16.1.2 actually fixes this issue or not? I will update, but this is the first time I’ve ever had this issue with the camera.
Posted
by
Post not yet marked as solved
0 Replies
17 Views
Hi everyone, I am currently facing troubles to notarize the MacOS app I distribute to our customer. I successfully signed my executable and the dmg that packages it with my Apple Developer certificate. I then successfully submitted a notarization ticket for my dmg by using "xcrun notarytool submit" command line. Nevertheless when reading the log, my notarization fails because of the following error in the json output: { "severity": "error", "code": null, "path": "MyDMG.dmg/MyApp.app/Contents/Resources/sklearn/.dylibs/libomp.dylib", "message": "The binary is not signed with a valid Developer ID certificate.", "docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087721", "architecture": "i386" } When running codesign -dv MyApp.app/Contents/Resources/sklearn/.dylibs/libomp.dylib I see indeed that the existing signature seems to lack some valid elements (Team ID...): Identifier=libomp-55554944b4aef647421b3b93bf0a9f6317d56c44 Format=Mach-O universal (i386 x86_64) CodeDirectory v=20400 size=4104 flags=0x2(adhoc) hashes=122+2 location=embedded Signature=adhoc Info.plist=not bound TeamIdentifier=not set Sealed Resources=none Internal requirements count=0 size=12 I tried to sign it with my Apple Developer certificate with codesign using the "-f" option to erase the existing signature but it seems like it is impossible because I get the following error: dist/dmg/Vib3s.app/Contents/Resources/sklearn/.dylibs/libomp.dylib: library validation flag cannot be used with an i386 binary When I check again the file the signature indeed didn't change. I also tried using an entitlements.plist file and setting the com.apple.security.cs.disable-library-validation option to true doesn't work. Would you guys know the proper way to proceed to successfully notarize my app please?
Posted
by

Pinned Posts

Categories

See all