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 not yet marked as solved
0 Replies
1 Views
Hello, I am using NSButtonCell to render a button into context, but something goes wrong in 12.4 in code that has always worked. If full keyboard access is turned on and I put setShowsFirstResponder and button is not in down state then button goes red. NSButtonCell -> setShowsFirstResponder in 12.4 makes button go red If the button is in pressed state then everything is ok.... Is this known issue with 12.4 or does anyone have any idea how I can prevent it going red in non pressed state when it has focus ?
Posted
by
Post not yet marked as solved
0 Replies
3 Views
Hi, I am a novice Swift developer, wanting to develop an app or three for my own use for now and as a learning experience. I want use Swift/SwiftUI to download a file (.sqlite) from AWS S3 Bucket and then upload when complete. I am trying to follow Amazon's tutorials but finding it difficult to apply to my code. So far I have been able to import the necessary packages (I think) into Xcode, but that is far as I have progressed. Are there any good examples or templated that I can use to get started? Also another newbie question, what make ContentView.swift the first/parent view of the application? I Appreciate your patience and assistance. //  ContentView.swift //  Shared // //  Created by Cameron on 2/7/2022. // import SwiftUI import Foundation import ClientRuntime import AWSClientRuntime import AWSS3 struct ContentView: View {          @State var showFilter = false     @State var messageClicked = false     @State var attendanceClicked = false     @State var reportingClicked = false          let pvmaRed = Color(red: 234/255, green: 26/255, blue: 33/255)     var body: some View {         VStack {             Text("PVMA CRM")                 .font(.largeTitle)             HStack {                 if(!(messageClicked || attendanceClicked || reportingClicked)) {                     Button("Filter") {                         showFilter.toggle()                     }                     .frame(maxWidth: .infinity, alignment: .top)                     .foregroundColor(pvmaRed)                 }             }             .frame(maxWidth: .infinity, alignment: .top)             ZStack {                 if(!(messageClicked || attendanceClicked || reportingClicked)) {                     NavigationView {                         List {                             NavigationLink {                                 MemberDetail()                             } label: {                                 MemberRow()                             }                             NavigationLink {                                 MemberDetail()                                                              } label: {                                 MemberRow()                             }                             NavigationLink {                                 MemberDetail()                                                              } label: {                                 MemberRow()                             }                         }                         .navigationTitle("Members")                     }                 }                 if (showFilter) {                     Filter()                         .frame(height: .infinity, alignment: .top)                         .scaleEffect(x: 1.0, y: 1.0, anchor: .top)                         .transition(.scale(scale: 0.0, anchor: .top) .animation(.easeInOut(duration: 0.66)))                 }                 if (messageClicked) {                     message()                 }                 if (attendanceClicked) {                     attendance()                 }                 if (reportingClicked) {                     reporting()                 }             }             Spacer()             HStack {                 Button(action: {                     messageClicked.toggle()                     attendanceClicked = false                     reportingClicked = false                     showFilter = false                 }, label: {                     VStack {                         Image("messages")                             .resizable(resizingMode: .stretch)                             .frame(width: 40, height: 40, alignment: .center)                             .grayscale(messageClicked ? 0.0 : 1.0)                         Text("Message")                             .font(.caption)                             .frame(width: 120)                             .foregroundColor(messageClicked ? pvmaRed : .black)                     }                 })                 Button(action: {                     messageClicked = false                     attendanceClicked.toggle()                     reportingClicked = false                     showFilter = false                 }, label: {                     VStack {                         Image("attendance")                             .resizable(resizingMode: .stretch)                             .frame(width: 40, height: 40, alignment: .center)                             .grayscale(attendanceClicked ? 0.0 : 1.0)                         Text("Attendance")                             .font(.caption)                             .frame(width: 120)                             .foregroundColor(attendanceClicked ? pvmaRed : .black)                     }                 })                     Button(action: {                         messageClicked = false                         attendanceClicked = false                         reportingClicked.toggle()                         showFilter = false                     }, label: {                         VStack {                             Image("reporting")                                 .resizable(resizingMode: .stretch)                                 .frame(width: 40, height: 40, alignment: .center)                                 .grayscale(reportingClicked ? 0.0 : 1.0)                             Text("Reporting")                                 .font(.caption)                                 .frame(width: 120)                                 .foregroundColor(reportingClicked ? pvmaRed : .black)                         }                     })             }         }         .background(showFilter ?                     Color(red: 0.94117647, green: 0.94117647, blue: 0.96470588) : Color(red: 1.0, green: 1.0, blue: 1.0))     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()             .previewInterfaceOrientation(.portrait)     } }
Posted
by
Post not yet marked as solved
0 Replies
9 Views
I'm most familiar with coding on Python and I would like to develop an app on Playgrounds MacOs platform. There's a tool named Peryton that translates one code language to another. Can I program the app in Python language and then switch to Swift with this tool, so it runs on Playground?
Posted
by
Post not yet marked as solved
0 Replies
13 Views
I setup multiple intents/shortcuts as shown below. I have renamed the shortcuts and omitted the intent code for privacy/security reasons. The code hasn't changed for a few days, and it stopped working. Siri no longer recognizes voiced commands provided in the phrases, when it used to recognize all of them. I have tried deleting the app, disabling Siri/deleting the dictionary, and restarting my phone, but no luck. Nothing can get it working again. Any suggestions or workarounds? I could only find posts where it never worked for some people. I had it working, but it broke. Thanks in advance. import Foundation import AppIntents @available(iOS 16.0, *) struct MyAppShortcuts: AppShortcutsProvider {     static var appShortcuts: [AppShortcut] {         AppShortcut(             intent: ExportAllTransactionsIntent(),             phrases: ["Make a (.applicationName) record", "Make a (.applicationName) *******"])         AppShortcut(             intent: ExportAllTransactionsIntent1(),             phrases: ["Display (.applicationName) ******** codes", "Show (.applicationName)******* *****])         AppShortcut(             intent: ExportAllTransactionsIntent2(),             phrases: ["Display (.applicationName) ********", "Show (.applicationName) *******"])     } }
Posted
by
Post not yet marked as solved
0 Replies
9 Views
Hi, I'm completely new to developing iOS/iPadOS apps. But I was hoping to develop an app to give some of my favourite apps keyboard shortcut support. Some of these apps would be Youtube, Songsterr and Spotify. Is this possible with the SDK in any way? So far I've found the IPC on iOS is very limited so I don't have high hopes...
Posted
by
Post not yet marked as solved
0 Replies
22 Views
Hey, I have come across a vulnerability in the latest release of iOS version 15.6.1 where a user or unauthorised person can bypass the iOS passcode / lock screen using a combination in the control centre. My phone is currently in version 15.6 but there are a number of cases of people's phones on 15.6.1 that the bypass will work. You can have a look at this video online: https://www.facebook.com/reel/383686103875831?extid=7MtrtK&fs=e
Posted
by
Post not yet marked as solved
1 Replies
17 Views
In my application, I need to use ipad to view a room with virtual objects and effects in it. I can do this with vuforia by scanning the room with area target generator, and put virtual objects and effects into the scanned scene in Unity. I wonder how can I achieve this by Arkit? I have googled but no suggestion found. Thanks for any help.
Posted
by
Post not yet marked as solved
0 Replies
21 Views
The error message is as follows: Xxxxx's iPhone has denied the launch request. Internal launch error: process launch failed: Unspecified I have trusted my certificate on my iPhone 5S. Using a simulator (iPhone 5S) it starts fine. Target OS in XCode iOS 12.4. My device has iOS v12.5.5
Posted
by
Post not yet marked as solved
0 Replies
15 Views
Hi, I have a problem with replacing altool to notarytool to notarize my app for distribution outside AppStore. Earlier I used this code (-p passes App's password): xcrun altool --notarize-app --primary-bundle-id "MyProductBundleID" -u "myname@gmail.com" -p "wxxx-xxxx-xxxx-xxxx" --file MyProduct.zip I wrote a new script: xcrun notarytool submit MyProduct.zip --keychain-profile "wxxx-xxxx-xxxx-xxxx" --wait Error with unknown "--keychain-profile".
Posted
by
Post not yet marked as solved
1 Replies
34 Views
Hello, I got an email that my subscription expires in 9 days but I don't want it to be renewed automatically, I went to look for the information to cancel but it's nowhere... does anyone know how to do it?
Posted
by
Post not yet marked as solved
1 Replies
29 Views
I generated tons of developer tokens with these generators: https://github.com/pelauimagineering/apple-music-token-generator https://github.com/ethanhuang13/CupertinoJWT And I've recreated keys and identifiers many times in the apple developer account too. But requests in my app to https://api.music.apple.com/v1/me/library/artists?offset= always returns 401. Also this test returns 401: curl -v -H 'Authorization: Bearer [developer token]' "https://api.music.apple.com/v1/test" The most interesting thing is that the method SKCloudServiceController().requestUserToken(forDeveloperToken: ...) returns the user token without errors. Using the developer token I created. I don't know what I'm doing wrong. I guess maybe the problem with my developer account with AM subscription and can't use it to test AM functionality? Or maybe AM service isn't working. But https://www.apple.com/support/systemstatus/ looks ok. I'll be glad for any information.
Posted
by
Post not yet marked as solved
0 Replies
15 Views
Hi, I have an App that contains a simple launcher script. It starts an embedded Java Application together with an embedded JRE. Like this: Contents/PlugIns/jre/Contents/Home/bin/java -jar Contents/Resources/Java/myapp-0.6.4-SNAPSHOT.jar This works fine, until I codesing the App using an entitlements file that enables sandboxing. Like this: <key>com.apple.security.app-sandbox</key> <true/> After sandboxing has been enabled like this, I get the following error when I try to start the app: Contents/MacOS/launcher: /Users/alex/Library/Containers/com.myapp/Data/MyApp.app/Contents/MacOS/launcher: No such file or directory Apparently, this folder exists /Users/alex/Library/Containers/com.myapp/Data, but does not contain a MyApp.app folder. How can I configure my launcher properly to work with sandboxing?
Posted
by
Post not yet marked as solved
1 Replies
29 Views
Hello guys, I wanted to start with Flutter in Xcode today but when I got to the Bundle Identifier these errors came. I hope someone can help me! Thanks
Posted
by
Post not yet marked as solved
0 Replies
13 Views
Hi, We would like to know if there is any way to enable Connection Doctor logs before adding any account into Mail application. Mail application's "Connection Doctor" menu is only visible after adding the account successfully in it. Or if there is any way to capture the Mail application Connection logs , it would be appreciated. I have tried below command however it does not showing the connection logs, its logging some Core Data related stuff. System/Applications/Mail.app/Contents/MacOS/Mail -LogActivityOnPort 110 Thanks & Regards, Mohmad Vasim
Posted
by
Post not yet marked as solved
1 Replies
23 Views
Crash Item : Crashed: com.apple.main-thread 0 CouchbaseLiteSwift 0x964f4 _hidden#16128 + 1833 (_hidden#16096:1833) 1 CouchbaseLiteSwift 0x964fc _hidden#16128 + 1834 (_hidden#16096:1834) 2 CouchbaseLiteSwift 0x96508 _hidden#16128 + 334 (_hidden#15573:334) 3 CouchbaseLiteSwift 0x964fc _hidden#16128 + 1834 (_hidden#16096:1834) 4 CouchbaseLiteSwift 0x1c2c9c _hidden#16129 + 1092 (_hidden#16095:1092) 5 libsystem_c.dylib 0x58270 __cxa_finalize_ranges + 408 6 libsystem_c.dylib 0x585c4 exit + 28 7 UIKitCore 0xbd62f0 -[UIApplication terminateWithSuccess] + 502 8 UIKitCore 0x2228d4 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128 9 UIKitCore 0x222504 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 220 10 UIKitCore 0xbcbdc0 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212 11 FrontBoardServices 0x69a8 + 88 12 FrontBoardServices 0x353d4 + 80 13 FrontBoardServices 0x196a4 + 240 14 FrontBoardServices 0x3536c + 132 15 libdispatch.dylib 0x481c _dispatch_client_callout + 20 16 libdispatch.dylib 0x830c _dispatch_block_invoke_direct + 268 17 FrontBoardServices 0x5dfa0 + 48 18 FrontBoardServices 0x5dc30 + 448 19 FrontBoardServices 0x5e184 + 32 20 CoreFoundation 0xa407c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 21 CoreFoundation 0xa3f78 __CFRunLoopDoSource0 + 208 22 CoreFoundation 0xa327c __CFRunLoopDoSources0 + 268 23 CoreFoundation 0x9d25c __CFRunLoopRun + 820 24 CoreFoundation 0x9c9f4 CFRunLoopRunSpecific + 600 25 GraphicsServices 0x3734 GSEventRunModal + 164 26 UIKitCore 0xbca75c -[UIApplication _run] + 1072 27 UIKitCore 0xbcffcc UIApplicationMain + 168 28 TCPApp 0xa44940 main + 39 (AppDelegate.swift:39) 29 libdyld.dylib 0x1cf8 start + 4 Crash Events : This issue has 1 crash event affecting 1 user
Posted
by
Learn More about - WWDC22.

Pinned Posts

Categories

See all