AppAuth-iOS icon indicating copy to clipboard operation
AppAuth-iOS copied to clipboard

Example-iOS_Swift-Carthage/Example_Extension show No such module 'AppAuthCore'

Open c1800054work opened this issue 3 years ago • 6 comments

i excute Example-iOS_Swift-Carthage project and use 'carthage bootstrap --use-xcframeworks' to install AppAuth. but it will show "No such module 'AppAuthCore'" in Example_Extension project.

OS: macOS Monterey 12.0.1 Xcode: 13.1

c1800054work avatar Dec 14 '21 04:12 c1800054work

Same for me.

OS: macOS Montery 12.0.1 XCode: 13.2.1

ian0cordova avatar Dec 29 '21 16:12 ian0cordova

same!!

OS: Big Sur 11.3.1 Xcode: 12.5.1

dokgi88 avatar Jan 06 '22 02:01 dokgi88

same here!

iamshimak avatar Jan 27 '22 11:01 iamshimak

I had this issue and was able to solve it. First, if you press on AppAuthCore on the left pane, the relative location of the folder should appear on the right pane. See Screenshot: Screen Shot 2022-03-11 at 6 30 34 PM

For me, the path of the parent directories of the AppAuthCore frameworks was incorrect. I fixed this by pressing the folder button and choosing the right path. For me, it was:

Carthage/Build/AppAuthCore.xcframework/ios-arm64_armv7/AppAuthCore.framework

I also did the same for the AppAuth framework.

Once you fix this, make sure to also update the file path in the Carthage header in the Build Phases section for both the Example and Example_Extension targets

omarismail94 avatar Mar 11 '22 23:03 omarismail94

My issue was that Carthage was trying to build for all "Platforms" and I only have iOS and MacOS installed. This was resolved for me by using the platform tag: carthage bootstrap --use-xcframeworks --platform iOS (xcframeworks flag needed on my ARM machine)

Carthage was failing without adding the AppAuthCore package until I specified my platform. THEN I had to update the path per omarismail94's solution.

dustmoo avatar Jan 01 '23 21:01 dustmoo