ArcGis 100.9 fails build in Xcode 12.3

3054
11
12-15-2020 12:01 AM
Selsoe
by
New Contributor III

I upgraded Xcode from 12.2 to Xcode 12.3 and after upgrading, the build fails on the ArcGis framework with this message:

"Building for iOS Simulator, but the linked and embedded framework 'ArcGIS.framework' was built for iOS + iOS Simulator."

Here's a Stackoverflow thread on the issue (not ArcGIS specific though):

https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-obje...

Also, you might want to consider distributing XCFramework files to be able to support multiple architectures properly.

 

0 Kudos
11 Replies
AndrewOndecker
New Contributor II

I too am having this issue when upgraded to Xcode 12.3 today. Xcode 12.2 was working just fine 

0 Kudos
DiveshGoyal
Esri Regular Contributor

Have you tried the workaround posted here - https://stackoverflow.com/a/65307593 ?
Another option is going to File > Project Settings, and then reverting to the Legacy Build System

And yes, we are migrating the ArcGIS library to the XCFramework format in the next release (update 10, coming soon)

AndrewOndecker
New Contributor II

The work around with the excluding architectures did not work for me. I was able to get around it by going to Build Settings and setting Validate Workspaces to Yes

InterPro
New Contributor II

Now that 100.10.0 is out, can the framework be installed via SPM? The install and setup documentation has no mention of it.

kris
by
New Contributor III

Anyone got the ArcGIS Runtime samples for iOS up on Apple Silicon/M1?

Currently I'm stuck at 

ld: building for iOS Simulator, but linking in dylib built for iOS, file '$HOME/Library/SDKs/ArcGIS/iOS/Frameworks/Dynamic/ArcGIS.framework/ArcGIS' for architecture arm64

0 Kudos
Selsoe
by
New Contributor III

Any news on a release that supports Xcode 12.3? An ETA?

0 Kudos
kris
by
New Contributor III

We are running 100.9 on 12.3 (Cocoapods). Did you check out Divesh´ link?

0 Kudos
Selsoe
by
New Contributor III

Yes, I tried it. It doesn't work for me. I'm not using CocoaPods, but Carthage or SPM.

0 Kudos
kris
by
New Contributor III

As long as you´re not on Apple silicon, it should be possible to get it running by configuring your project manually, following the steps in the installation guide: https://developers.arcgis.com/ios/latest/swift/guide/install.htm

 

I understand something changed from 12.2 to 12.3, so I´d just go through all the details once more (or perhaps set up a clean basic project for reference). 

0 Kudos