SKIEDemoSample
SKIEDemoSample copied to clipboard
The demo article is inacurate for iOS setup
In the SKIE demo article, it is said to run pod install.
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.