Esri / arcgis-maps-sdk-swift

Swift Package Manager support for ArcGIS Maps SDK for Swift
https://developers.arcgis.com/swift
Other
18 stars 1 forks source link

Package arcgis-maps-sdk-swift 200.2.0 not working #9

Closed bux225 closed 10 months ago

bux225 commented 10 months ago

I am following the first tutorial (Display a Map) to the letter: https://developers.arcgis.com/swift/maps-2d/tutorials/display-a-map/

At the completion of "Set your API Key" step 4 when I build and run it fails with several errors.

On "import ArcGIS" lines soon MainApp and ContentView I get a warning that "File "MainApp.swift" is part of module "ArcGIS". Ignoring import"

Thus I get error on MainApp:

On ContentView:

If I remove all ArcGIS-specific code from MainApp and ContentView, but leave package attached and build run, I get the following on the terminal:

warning: (arm64) /Users/......../Xcode/DerivedData/ArcGIS-hjnpakqxnfpnyhampxhiyvbreuev/Build/Products/Debug-iphonesimulator/ArcGIS.app/Frameworks/CoreArcGIS.framework/CoreArcGIS empty dSYM file detected, dSYM was created with an executable with no debug info.

dfeinzimer commented 10 months ago

Hi @bux225, can you please confirm a few things?

  1. In the Project Navigator under "Package Dependencies" you see the following:

Package Dependencies 2. In your app's target under "Frameworks, Libraries, and Embedded Content" you see the following:

Frameworks Libraries and Embedded Content

3. In `MainApp.swift` you've set the type of `body` to `some SwiftUI.Scene`:

Screenshot 2023-08-18 at 23 18 07

bux225 commented 10 months ago

Yes to all.

On Sat, Aug 19, 2023 at 00:20 David Feinzimer @.***> wrote:

Hi @bux225 https://github.com/bux225, can you please confirm a few things?

  1. In the Project Navigator under "Package Dependencies" you see the following:

[image: Package Dependencies] https://user-images.githubusercontent.com/16397058/261779240-508a60a9-8766-4deb-b5e8-d8ac59e7292b.png

  1. In your app's target under "Frameworks, Libraries, and Embedded Content" you see the following:

[image: Frameworks Libraries and Embedded Content] https://user-images.githubusercontent.com/16397058/261779581-2671b935-80e3-4beb-8134-73d0bc3207ff.png

  1. In MainApp.swift you've set the type of body to some SwiftUI.Scene:

[image: Screenshot 2023-08-18 at 23 18 07] https://user-images.githubusercontent.com/16397058/261779801-4227e76c-40c2-4ae4-8d24-75092b231385.png

— Reply to this email directly, view it on GitHub https://github.com/Esri/arcgis-maps-sdk-swift/issues/9#issuecomment-1684853307, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUMQQB42LLOH7AC3HEZKUDXWBLLHANCNFSM6AAAAAA3WITDRA . You are receiving this because you were mentioned.Message ID: @.***>

dfeinzimer commented 10 months ago

Hi @bux225, is it possible that when creating the project "ArcGIS" was used as the Product Name? Doing so would cause a name collision with the SDK and trigger the same warning you reported.

Screenshot 2023-08-19 at 08 07 58

Screenshot 2023-08-19 at 08 11 29

bux225 commented 10 months ago

Oh, for the love of Pete. My fault. Sorry for the bother.

On Sat, Aug 19, 2023 at 09:12 David Feinzimer @.***> wrote:

Hi @bux225 https://github.com/bux225, is it possible that when creating your new project "ArcGIS" was used as the Product Name? Doing so would cause a name collision with the SDK and trigger the same error you reported. [image: Screenshot 2023-08-19 at 08 07 58] https://user-images.githubusercontent.com/16397058/261805250-fee33f5d-1104-42b4-9a21-66b021dcda66.png [image: Screenshot 2023-08-19 at 08 11 29] https://user-images.githubusercontent.com/16397058/261805293-471e2359-f010-4731-acbf-3a9781cf650d.png

— Reply to this email directly, view it on GitHub https://github.com/Esri/arcgis-maps-sdk-swift/issues/9#issuecomment-1685025752, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUMQQBLCD4MK77F4FBR6WDXWDJWDANCNFSM6AAAAAA3WITDRA . You are receiving this because you were mentioned.Message ID: @.***>

dfeinzimer commented 10 months ago

Glad we were able to get to the bottom of it!