Post

Replies

Boosts

Views

Activity

Another Xcode doc. error: Non-existent 'App Icons & Launch Images' menu item
In "Create asset catalogs and sets" - https://help.apple.com/xcode/mac/current/#/dev10510b1f7 - I read this: " Create an iOS or tvOS launch screen image set: Choose App Icons & Launch Images > New [OS] Launch Image from the Add button (+) or from the Editor > Add Assets menu. For an iOS app, you can also change the default launch screen source to an image set. " But neither the Editor -> Add New Asset menu nor the Add button (+) menu contains an "App Icons & Launch Images" item. I can add that I use Xcode 16.1. So again, the Xcode documentation is quite misleading and confusing! My (real) question is if it is possible to give Xcode ONE launch image from which Xcode creates all necessary image sizes automatically? Or do we still need the apps and services that creates a bunch of launch images from ONE image?
1
0
268
Nov ’24
Xcode doc. error: There is no 'asset catalog' in Project Navigator
In several places on https://developer.apple.com/documentation/xcode/configuring-your-app-icon I read: "In the Project navigator, select an asset catalog." But my Project Navigator does NOT contain any "asset catalog". So it's impossible to follow the instructions of the documentation, and thus specify a new app icon (set). I can add that I use Xcode 16.1 on MacOS 15.0.1 Sequoia. I have added a screen shot to document what I am saying. I have also reported this error in https://feedbackassistant.apple.com/feedback/15738182
2
0
732
Nov ’24
Is it impossible to connect iPhone 7 to Xcode 16.1?
Hi! I am trying to test an app developed in Xcode 16.1 on an iPhone 7 running iOS 15.8.3. My MacOS is 15.0.1 (Sequoia). But I am getting "iPhone is busy" no matter what I do. And yes - Finder can see the iPhone 7 and show information about it. I have followed a lot of advice that is supposed to solve this, for instance here: https://forums.developer.apple.com/forums/thread/692230 And here: https://stackoverflow.com/questions/46316373/fixing-xcode-9-issue-iphone-is-busy-preparing-debugger-support-for-iphone/48238062 But nothing works. Actually it's getting worse... At one point it said "100% complete", although it was still "busy". But now I don't even get to the "100% complete" message... (After 30 minutes.) So my conclusion is that it's impossible to use an iPhone 7 running iOS 15.8.3 to test an app developed in Xcode 16.1 on MacOS 15.0.1. Am I right? In that case: Which iPhone models and iOS versions can be used instead?
3
0
772
Oct ’24
Bug: "xcode-select --install" installs outdated version (on MacOS Sequoia)
I just did a fresh install of MacOS Sequoia 15.0.1, then I installed Xcode 16. Then, in Terminal, I did: xcode-select --install Which created a pop-up window from which I installed the Command Line tools. Later that day I used the command "brew doctor", and got this warning: Warning: Your Command Line Tools are too outdated. Update them from Software Update in System Settings. If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 16.0. And yes, System Settings -> Software Update showed that Command Line Tools needed to updated. I find this to be very strange behavior of MacOS Sequoia 15.0.1...
2
0
1.2k
Oct ’24
KMLViewer (Map Kit): MKPointAnnotation text not displayed
Hi! Here comes another question related to the KMLViewer MapKit example: My KML file contains 11 annotations in the form of MKPointAnnotation. Each of them contain a text, which can be found in '_title', in the Xcode debugger. But it is not displayed on the map (MKMapView). Can any one help me figure out why? Thank you! The KMLViewer can be found here: https://github.com/ooper-shlab/KMLViewer-Swift It can be imported directly in Xcode.
6
0
2.3k
May ’21
MKPolyline 'inside' an MKOverlay: How do I access the points that construct the line?
My question yesterday - https://developer.apple.com/forums/thread/680107 - was probably to complex for anyone to want to try to answer, I am sorry! So now I will break it up, and start with a smaller question: I am trying to show 10 simple lines on a map with Map Kit. The lines have been loaded into a list called 'overlays' by a module called KMLviewer, or more exactly KMLparser, inside KMLviewer - from https://github.com/ooper-shlab/KMLViewer-Swift . As you can see from my debugging log below, 'overlays' is a list of elements of the type 'MKOverlay', although in reality they are all MKPolyline(s). So how do I access the 2 geographic points that make up each line? MKPolyline inherits from MKMultiPoint, which has a function: func points() - UnsafeMutablePointerMKMapPoint "Returns an array of map points associated with the shape. " But as you can see from my debugging below, I can't seem to access that function, now that the MKPolyline is "inside" an MKOverlay. So how do I access the points?: (lldb) po overlays ▿ 10 elements     - 0 : MKPolyline: 0x60000368bc60     - 1 : MKPolyline: 0x60000368bcd0     - 2 : MKPolyline: 0x60000368bd40     - 3 : MKPolyline: 0x60000368bdb0     - 4 : MKPolyline: 0x60000368be20     - 5 : MKPolyline: 0x60000368be90     - 6 : MKPolyline: 0x60000368bf00     - 7 : MKPolyline: 0x60000368bf70     - 8 : MKPolyline: 0x600003690000     - 9 : MKPolyline: 0x600003690070 (lldb) po overlays[0] MKPolyline: 0x60000368bc60 (lldb) po overlays[0].coordinate ▿ CLLocationCoordinate2D     - latitude : 64.47726683920816     - longitude : -21.420572185955933 (lldb) po overlays[0].points() error: EXPR:3:13: error: value of type 'MKOverlay' has no member 'points' overlays[0].points() ~~~ ^~ (lldb)
14
0
2.9k
May ’21
MKMapView: Why are my MKPolyline(s) invisible?
Hi! Years ago Apple created an MKMapView demo called KMLViewer. It includes a KMLParser that reads a KML file and converts the data to Map Kit classes. Originally it was in Obj. C, but someone translated it to Swift, and put it here: https://github.com/ooper-shlab/KMLViewer-Swift I imported it directly into Xcode and made it read a KML file I have created. It correctly finds 10 overlays in the form of MKPolyline and 11 annotations in the form of MKPointAnnotation, but they are not shown/displayed correctly. The biggest problem is that the lines are totally missing. And when I look at the overlays I can't seem to find the 2 geographic points/positions/locations that describes each line. I am not sure how to make Xcode print out the content of the MKPolyline(s) instances in a way I can include here as text, and it seems you can't attach a screenshot here either, but I have managed to put the screenshot here: transformation.dk/deling/screenshot-overlays-MKPolyline-2021-05-13.png So you can see the content as I found it. It seems to correctly indicate that the MKPolyline consists of 2 geographic points, but I haven't been able to find the points themselves... On the annotations I was able to find the point, in the Xcode debugger, in this way: (lldb) po annotations[0].coordinate I hope someone can help me understand what is going on, and how to find the relevant debugging/tracking information in Xcode. I am a bit surprised that I had to specifically write ".coordinate" in "po annotations[0].coordinate" in order to find the geographic point of the annotation! I am aware that the problem might also be the MKPolylineRenderer class or the mapView:rendererForOverlay: method, so I have included the references to those in KMLviewer below: swift override func createOverlayPathRenderer(_ shape: MKShape) - MKOverlayPathRenderer? { let polyLine = MKPolylineRenderer(polyline: shape as! MKPolyline) return polyLine } (EDIT: PS: The following code was display incorrectly in the preview...:) swift func rendererForOverlay(_ overlay: MKOverlay) - MKOverlayRenderer? { // Find the KMLPlacemark object that owns this overlay and get // the view from it. for placemark in _placemarks { if placemark.overlay === overlay { return placemark.overlayPathRenderer } } return nil }
3
0
1.6k
May ’21
MKMapView: How do I set mapType? (beginner question)
Hi I am an absolute beginner in Swift. A friend helped me setup a test app that displays a map using Map Kit. This is the part that creates the actually map: class KMLViewerViewController: UIViewController, MKMapViewDelegate { let map = MKMapView() // etc. ... } I tried to set mapType to hybridFlyover in different ways, like this for instance: let map = MKMapView(.mapType = .hybridFlyover ) But everything returns an error... Can any one help me, please? Where can I find an explanation of swift syntax?
3
0
1.5k
May ’21
Another Xcode doc. error: Non-existent 'App Icons & Launch Images' menu item
In "Create asset catalogs and sets" - https://help.apple.com/xcode/mac/current/#/dev10510b1f7 - I read this: " Create an iOS or tvOS launch screen image set: Choose App Icons & Launch Images > New [OS] Launch Image from the Add button (+) or from the Editor > Add Assets menu. For an iOS app, you can also change the default launch screen source to an image set. " But neither the Editor -> Add New Asset menu nor the Add button (+) menu contains an "App Icons & Launch Images" item. I can add that I use Xcode 16.1. So again, the Xcode documentation is quite misleading and confusing! My (real) question is if it is possible to give Xcode ONE launch image from which Xcode creates all necessary image sizes automatically? Or do we still need the apps and services that creates a bunch of launch images from ONE image?
Replies
1
Boosts
0
Views
268
Activity
Nov ’24
Xcode doc. error: There is no 'asset catalog' in Project Navigator
In several places on https://developer.apple.com/documentation/xcode/configuring-your-app-icon I read: "In the Project navigator, select an asset catalog." But my Project Navigator does NOT contain any "asset catalog". So it's impossible to follow the instructions of the documentation, and thus specify a new app icon (set). I can add that I use Xcode 16.1 on MacOS 15.0.1 Sequoia. I have added a screen shot to document what I am saying. I have also reported this error in https://feedbackassistant.apple.com/feedback/15738182
Replies
2
Boosts
0
Views
732
Activity
Nov ’24
Is it impossible to connect iPhone 7 to Xcode 16.1?
Hi! I am trying to test an app developed in Xcode 16.1 on an iPhone 7 running iOS 15.8.3. My MacOS is 15.0.1 (Sequoia). But I am getting "iPhone is busy" no matter what I do. And yes - Finder can see the iPhone 7 and show information about it. I have followed a lot of advice that is supposed to solve this, for instance here: https://forums.developer.apple.com/forums/thread/692230 And here: https://stackoverflow.com/questions/46316373/fixing-xcode-9-issue-iphone-is-busy-preparing-debugger-support-for-iphone/48238062 But nothing works. Actually it's getting worse... At one point it said "100% complete", although it was still "busy". But now I don't even get to the "100% complete" message... (After 30 minutes.) So my conclusion is that it's impossible to use an iPhone 7 running iOS 15.8.3 to test an app developed in Xcode 16.1 on MacOS 15.0.1. Am I right? In that case: Which iPhone models and iOS versions can be used instead?
Replies
3
Boosts
0
Views
772
Activity
Oct ’24
Bug: "xcode-select --install" installs outdated version (on MacOS Sequoia)
I just did a fresh install of MacOS Sequoia 15.0.1, then I installed Xcode 16. Then, in Terminal, I did: xcode-select --install Which created a pop-up window from which I installed the Command Line tools. Later that day I used the command "brew doctor", and got this warning: Warning: Your Command Line Tools are too outdated. Update them from Software Update in System Settings. If that doesn't show you any updates, run: sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install Alternatively, manually download them from: https://developer.apple.com/download/all/. You should download the Command Line Tools for Xcode 16.0. And yes, System Settings -> Software Update showed that Command Line Tools needed to updated. I find this to be very strange behavior of MacOS Sequoia 15.0.1...
Replies
2
Boosts
0
Views
1.2k
Activity
Oct ’24
KMLViewer (Map Kit): MKPointAnnotation text not displayed
Hi! Here comes another question related to the KMLViewer MapKit example: My KML file contains 11 annotations in the form of MKPointAnnotation. Each of them contain a text, which can be found in '_title', in the Xcode debugger. But it is not displayed on the map (MKMapView). Can any one help me figure out why? Thank you! The KMLViewer can be found here: https://github.com/ooper-shlab/KMLViewer-Swift It can be imported directly in Xcode.
Replies
6
Boosts
0
Views
2.3k
Activity
May ’21
MKPolyline 'inside' an MKOverlay: How do I access the points that construct the line?
My question yesterday - https://developer.apple.com/forums/thread/680107 - was probably to complex for anyone to want to try to answer, I am sorry! So now I will break it up, and start with a smaller question: I am trying to show 10 simple lines on a map with Map Kit. The lines have been loaded into a list called 'overlays' by a module called KMLviewer, or more exactly KMLparser, inside KMLviewer - from https://github.com/ooper-shlab/KMLViewer-Swift . As you can see from my debugging log below, 'overlays' is a list of elements of the type 'MKOverlay', although in reality they are all MKPolyline(s). So how do I access the 2 geographic points that make up each line? MKPolyline inherits from MKMultiPoint, which has a function: func points() - UnsafeMutablePointerMKMapPoint "Returns an array of map points associated with the shape. " But as you can see from my debugging below, I can't seem to access that function, now that the MKPolyline is "inside" an MKOverlay. So how do I access the points?: (lldb) po overlays ▿ 10 elements     - 0 : MKPolyline: 0x60000368bc60     - 1 : MKPolyline: 0x60000368bcd0     - 2 : MKPolyline: 0x60000368bd40     - 3 : MKPolyline: 0x60000368bdb0     - 4 : MKPolyline: 0x60000368be20     - 5 : MKPolyline: 0x60000368be90     - 6 : MKPolyline: 0x60000368bf00     - 7 : MKPolyline: 0x60000368bf70     - 8 : MKPolyline: 0x600003690000     - 9 : MKPolyline: 0x600003690070 (lldb) po overlays[0] MKPolyline: 0x60000368bc60 (lldb) po overlays[0].coordinate ▿ CLLocationCoordinate2D     - latitude : 64.47726683920816     - longitude : -21.420572185955933 (lldb) po overlays[0].points() error: EXPR:3:13: error: value of type 'MKOverlay' has no member 'points' overlays[0].points() ~~~ ^~ (lldb)
Replies
14
Boosts
0
Views
2.9k
Activity
May ’21
MKMapView: Why are my MKPolyline(s) invisible?
Hi! Years ago Apple created an MKMapView demo called KMLViewer. It includes a KMLParser that reads a KML file and converts the data to Map Kit classes. Originally it was in Obj. C, but someone translated it to Swift, and put it here: https://github.com/ooper-shlab/KMLViewer-Swift I imported it directly into Xcode and made it read a KML file I have created. It correctly finds 10 overlays in the form of MKPolyline and 11 annotations in the form of MKPointAnnotation, but they are not shown/displayed correctly. The biggest problem is that the lines are totally missing. And when I look at the overlays I can't seem to find the 2 geographic points/positions/locations that describes each line. I am not sure how to make Xcode print out the content of the MKPolyline(s) instances in a way I can include here as text, and it seems you can't attach a screenshot here either, but I have managed to put the screenshot here: transformation.dk/deling/screenshot-overlays-MKPolyline-2021-05-13.png So you can see the content as I found it. It seems to correctly indicate that the MKPolyline consists of 2 geographic points, but I haven't been able to find the points themselves... On the annotations I was able to find the point, in the Xcode debugger, in this way: (lldb) po annotations[0].coordinate I hope someone can help me understand what is going on, and how to find the relevant debugging/tracking information in Xcode. I am a bit surprised that I had to specifically write ".coordinate" in "po annotations[0].coordinate" in order to find the geographic point of the annotation! I am aware that the problem might also be the MKPolylineRenderer class or the mapView:rendererForOverlay: method, so I have included the references to those in KMLviewer below: swift override func createOverlayPathRenderer(_ shape: MKShape) - MKOverlayPathRenderer? { let polyLine = MKPolylineRenderer(polyline: shape as! MKPolyline) return polyLine } (EDIT: PS: The following code was display incorrectly in the preview...:) swift func rendererForOverlay(_ overlay: MKOverlay) - MKOverlayRenderer? { // Find the KMLPlacemark object that owns this overlay and get // the view from it. for placemark in _placemarks { if placemark.overlay === overlay { return placemark.overlayPathRenderer } } return nil }
Replies
3
Boosts
0
Views
1.6k
Activity
May ’21
MKMapView: How do I set mapType? (beginner question)
Hi I am an absolute beginner in Swift. A friend helped me setup a test app that displays a map using Map Kit. This is the part that creates the actually map: class KMLViewerViewController: UIViewController, MKMapViewDelegate { let map = MKMapView() // etc. ... } I tried to set mapType to hybridFlyover in different ways, like this for instance: let map = MKMapView(.mapType = .hybridFlyover ) But everything returns an error... Can any one help me, please? Where can I find an explanation of swift syntax?
Replies
3
Boosts
0
Views
1.5k
Activity
May ’21