Post

Replies

Boosts

Views

Activity

Not authorized to send Apple events in XCode
My OS X app requires disk access, scripting access, and creates virtual keyboard events. It runs fine with the release version that’s running in the Application directory, but when I try to run it from XCode none of these things work. When I run Applescript I get: Not authorized to send Apple eventsI’ve added all the necessary permissions for my app as well as XCode. How can I get this working?
0
0
869
Dec ’19
NSCocoaErrorDomain when trying to run
I have been struggling with this error. My build succeeds but won't run. I've tried every suggestion I've ready in every article I could find and nothing has worked. This happens if I run it on the simulator or device. Any tips? ============================== The file “APP NAME” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: {     NSFilePath = "/Users/Me/Library/Developer/Xcode/DerivedData/Main-ekzzcailcbrpykazzxdtbnpsjuhr/Build/Products/Debug-iphoneos/APP NAME.app"; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied
1
0
933
Feb ’21
iOS WebSocket error: Default TLS Trust evaluation failed
I'm trying to connect to a web socket server using WatchKit. I already have a Javascript app and a Windows application that can connect to this WebSocket server, but with iOS and WatchOS it fails with the errors below. Any idea how I can figure out what's wrong? I already added the App Transport Security Settings to my plist file. Connection 1: default TLS Trust evaluation failed(-9807) Connection 1: TLS Trust encountered error 3:-9807 Connection 1: encountered error(3:-9807) Connection 1: unable to determine interface type without an established connection
12
0
6.2k
May ’21
Core Bluetooth transfer speed. Does direction matter?
I developed an iOS app that communicates with an OS X app over Bluetooth. There appears to be a speed difference in transferring data depending on which one I make the peripheral. The iOS app is going to be sending data quickly to the OS X app and needs to be received with no delay. If I make the iOS app the peripheral and the OS X app the central this works relatively well. If I make the iOS app the central and the OS X app the peripheral then the data is sent with a lag, as if it is being buffered. Because I plan to use this on WatchOS too, I need to make the iOS app the central and the OS X app the peripheral. I'm setting CBCharacteristicWriteWithoutResponse when I send the data. I also tried to open a L2CAP channel but saw the same performance issue. Is this a known limitation or is there something I could be doing wrong?
0
0
894
Jun ’21
Digital Crown location on screen
Is it possible to get the Y location and height on screen of the Digital Crown? I capture the crownDidRotate event to perform my own actions, and want to show my own visual indicator next to the crown, like the one that comes up with you scroll a list. I could hard code the values based on the watch model, just wondered if there was a way to get this programmatically so I don't have to update it for newer models if the location changes. Thanks
0
0
871
Aug ’21
Recognizing text
I'm using VNImageRequestHandler to recognize text using the camera. In my handler I'm using the topLeft, topRight, bottomLeft, bottomRight properties, which I'm scaling to the size of the canvas, to draw an outline around each text object. When I do this the Y position and Height are correct, but the Width is slightly smaller, and the X position centers the outline around the text. Any idea why this would be a different size?
2
0
1.1k
Nov ’21
Independent Apple Watch app trying to access WIFI without iPhone
I developed an independent Apple Watch that can access network resources on its own using NSURLSession without going through the iPhone. This works fine if the iPhone is on, but if I turn the iPhone off it is not able to connect. Why does my app lose network connectivity when the iPhone is off even though it's a standalone app and the Watch is connected to my WIFI? Is there anything special I need to do to get this working? It appears that no apps work with the internet when the iPhone is off. WIFI is enabled and connected to my WIFI network under the Settings on the watch
0
0
911
Feb ’22
Why is Apple Watch development still so terrible?
In all the years of developing for the Apple Watch, the process of trying to run my app on a physical watch or simulator through Xcode is still an absolute nightmare. I probably waste hours each day trying to get my app running. Either the watch doesn't show as paired in Xcode, or it's stuck setting the watch up for development, or it says it's running but Xcode just hangs, or it just doesn't show up in Xcode at all. I have to do so many combinations of restarting my watch, my iPhone, my Mac to try and get it working again. Sometimes it works, sometimes it doesn't and I just give up for the day. Once I get it running I may have 5 times the app will start properly before going back to not running. When trying to use the simulator the watch keeps coming unpaired with the iPhone and won't run. And it's not possible to use Xcode with an iPhone that has multiple Apple Watches paired to it, which is annoying because I can't have one dedicated watch for testing. I just don't understand after all these years Apple Watch development just keeps getting worse and worse. I'm almost ready to just drop my Watch app completely, it's just not worth the headache we go through trying to develop it.
2
3
1.8k
Feb ’22
Independent WebOS app can only access Web Sockets through iPhone
I'm developing an independent WatchOS app that uses NSURLSessionWebSocketTask to access Web Sockets. This works fine as long as the Apple Watch is connected to an iPhone, but when it's not, the web socket won't connect and gives an error that there is no network available. Using NSURLSession to access a web resource works fine though whether the watch is connected to an iPhone or not. Is this a bug or is there a way to get this working? Thanks
1
0
932
Feb ’22
Unable to upload Watch App screenshots to App Store
I'm trying to update our app, but every time I try to upload screenshots for our Watch App it just freezes and never finishes uploading the picture. The progress indicator on the image just gets stuck in place at about 10% and there are tons of Javascript errors. I wrote Apple and gave them all the logs and errors but they haven't fixed it and won't even tell me if/when it will be fixed. I've been having this problem for over 2 months now and am unable to submit app updates, which is a big problem. Anyone else having this problem? Anything I can try?
5
0
2.0k
Apr ’22