SKIEDemoSample icon indicating copy to clipboard operation
SKIEDemoSample copied to clipboard

The demo article is inacurate for iOS setup

Open michalsrutek opened this issue 1 year ago • 0 comments

In the SKIE demo article, it is said to run pod install.

Screenshot 2024-02-20 at 9 32 40

However, when running the command, one gets the following error message.

[!] Failed to load 'shared' podspec: 
[!] Invalid `shared.podspec` file: 

        Kotlin framework 'shared' doesn't exist yet, so a proper Xcode project can't be generated.
        'pod install' should be executed after running ':generateDummyFramework' Gradle task:

            ./gradlew :shared:generateDummyFramework

        Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set).

 #  from /Users/redacted/XcodeProjects/SKIEDemoSample/shared/shared.podspec:15
 #  -------------------------------------------
 #      if !Dir.exist?('build/cocoapods/framework/shared.framework') || Dir.empty?('build/cocoapods/framework/shared.framework')
 >          raise "
 #  
 #  -------------------------------------------

The fix is (as the error mentions) to run

./gradlew :shared:generateDummyFramework

from the root directory.

⏩ This should be either updated in the article, or made into a pre-install hook of CocoaPods.

michalsrutek avatar Feb 20 '24 08:02 michalsrutek