Skip to content

trinnguyen/kmp-iosApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KMP-iosApp

UIKit-based iOS app for Kotlin Multiplatform

  • Created with Xcode 15.0.1
  • UIKit based with SceneDelegate and Main storyboard, plus unit tests and UI tests
  • Updated settings to work with KMP gradle project

Usage

  • Replace the iosApp folder of the KMP project by this repo!

Guide for manual update of existing iosApp without using this repo

  1. Create new Xcode iOS application with name iosApp
  2. Select the iosApp target -> Build Phases -> Create New Run Script Phase, move it just below Compile Source phase, set Shell and content as:
/bin/sh
cd "$SRCROOT/.."
./gradlew :shared:embedAndSignAppleFrameworkForXcode
New Script
Screenshot 2023-11-04 at 12 12 14 PM Screenshot 2023-11-04 at 12 12 46 PM
  1. Update Other Linker Flags of the iosApp target to:
-framework shared
Screenshot 2023-11-04 at 12 16 24 PM
  1. Update FRAMEWORK_SEARCH_PATHS to
$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
Screenshot 2023-11-04 at 12 18 19 PM

Releases

No releases published

Packages

No packages published

Languages