Hi everyone! I am trying to build the iosApp from ...
# multiplatform
s
Hi everyone! I am trying to build the iosApp from my KMM project in xcode, but seeing this error:
Copy code
> Task :shared:compileKotlinIosSimulatorArm64 UP-TO-DATE
> Task :shared:linkPodDebugFrameworkIosSimulatorArm64
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Has anyone seen this issue and can help me fix it?
1
p
Can you add more logs, it seems you didn't copy the full log output
s
Here's some more of the log output, let me know if I should paste the whole thing, it's quite long:
Copy code
export SYSTEM_DEVELOPER_TOOLS_DOC_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/documentation/DeveloperTools
  export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR\=/Applications/Xcode.app/Contents/Developer/ADC\ Reference\ Library/releasenotes/DeveloperTools
  export SYSTEM_DEVELOPER_USR_DIR\=/Applications/Xcode.app/Contents/Developer/usr
  export SYSTEM_DEVELOPER_UTILITIES_DIR\=/Applications/Xcode.app/Contents/Developer/Applications/Utilities
  export SYSTEM_DEXT_INSTALL_PATH\=/System/Library/DriverExtensions
  export SYSTEM_DOCUMENTATION_DIR\=/Library/Documentation
  export SYSTEM_KEXT_INSTALL_PATH\=/System/Library/Extensions
  export SYSTEM_LIBRARY_DIR\=/System/Library
  export TAPI_DEMANGLE\=YES
  export TAPI_ENABLE_PROJECT_HEADERS\=NO
  export TAPI_LANGUAGE\=objective-c
  export TAPI_LANGUAGE_STANDARD\=compiler-default
  export TAPI_VERIFY_MODE\=ErrorsOnly
  export TARGETED_DEVICE_FAMILY\=1,2
  export TARGETNAME\=shared
  export TARGET_BUILD_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Products/Debug-iphonesimulator/shared
  export TARGET_NAME\=shared
  export TARGET_TEMP_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/shared.build/Debug-iphonesimulator/shared.build
  export TEMP_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/shared.build/Debug-iphonesimulator/shared.build
  export TEMP_FILES_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/shared.build/Debug-iphonesimulator/shared.build
  export TEMP_FILE_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/shared.build/Debug-iphonesimulator/shared.build
  export TEMP_ROOT\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex
  export TEST_FRAMEWORK_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk/Developer/Library/Frameworks
  export TEST_LIBRARY_SEARCH_PATHS\=\ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib
  export TOOLCHAINS\=com.apple.dt.toolchain.XcodeDefault
  export TOOLCHAIN_DIR\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
  export TREAT_MISSING_BASELINES_AS_TEST_FAILURES\=NO
  export UID\=502
  export UNINSTALLED_PRODUCTS_DIR\=/Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/UninstalledProducts
  export UNSTRIPPED_PRODUCT\=NO
  export USER\=snilangekar
  export USER_APPS_DIR\=/Users/snilangekar/Applications
  export USER_LIBRARY_DIR\=/Users/snilangekar/Library
  export USE_DYNAMIC_NO_PIC\=YES
  export USE_HEADERMAP\=YES
  export USE_HEADER_SYMLINKS\=NO
  export USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES\=YES
  export VALIDATE_DEVELOPMENT_ASSET_PATHS\=YES_ERROR
  export VALIDATE_PRODUCT\=NO
  export VALID_ARCHS\=arm64\ arm64e\ i386\ x86_64
  export VERBOSE_PBXCP\=NO
  export VERSION_INFO_BUILDER\=snilangekar
  export VERSION_INFO_FILE\=shared_vers.c
  export VERSION_INFO_STRING\=\"@\(\#\)PROGRAM:shared\ \ PROJECT:shared-\"
  export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES\=NO
  export XCODE_APP_SUPPORT_DIR\=/Applications/Xcode.app/Contents/Developer/Library/Xcode
  export XCODE_PRODUCT_BUILD_VERSION\=14E300c
  export XCODE_VERSION_ACTUAL\=1431
  export XCODE_VERSION_MAJOR\=1400
  export XCODE_VERSION_MINOR\=1430
  export XPCSERVICES_FOLDER_PATH\=/XPCServices
  export YACC\=yacc
  export arch\=undefined_arch
  export variant\=normal
  /bin/sh -c /Users/snilangekar/Library/Developer/Xcode/DerivedData/iosApp-eltopzvykszfgtcuvwmqqjlpmzzw/Build/Intermediates.noindex/shared.build/Debug-iphonesimulator/shared.build/Script-E6E5B5AEDAF98B46B9F915BB85B54BBF.sh

        REPO_ROOT="$PODS_TARGET_SRCROOT"
        "$REPO_ROOT/../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework           -Pkotlin.native.cocoapods.platform=$PLATFORM_NAME           -Pkotlin.native.cocoapods.archs="$ARCHS"           -Pkotlin.native.cocoapods.configuration="$CONFIGURATION"

Configure project :shared
Configuration 'iosArm64CompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Configuration 'iosArm64TestCompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Configuration 'iosSimulatorArm64CompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Configuration 'iosSimulatorArm64TestCompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Configuration 'iosX64CompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Configuration 'iosX64TestCompileKlibraries' was resolved during configuration time.
This is a build performance and scalability issue.
See <https://github.com/gradle/gradle/issues/2298>
Run with --info for a stacktrace.
Task :shared:compileKotlinIosSimulatorArm64 UP-TO-DATE
Task :shared:linkPodDebugFrameworkIosSimulatorArm64
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Copy code
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskresources.a(libskresources.SkResources.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.Decorations.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libparticles.a(libparticles.SkParticleBinding.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.FontArguments.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.FontCollection.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.OneLineShaper.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libparticles.a(libparticles.SkParticleDrawable.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libparticles.a(libparticles.SkParticleEffect.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.ParagraphBuilderImpl.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libparticles.a(libparticles.SkReflected.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.ParagraphCache.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.ParagraphImpl.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.ParagraphPainterImpl.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.ParagraphStyle.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.Run.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.TextLine.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/konan_temp17096027845132073327/result.o) was built for newer iOS Simulator version (14.0) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskottie.a(libskottie.BlendModes.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskottie.a(libskottie.Camera.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskottie.a(libskottie.Composition.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskottie.a(libskottie.Layer.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.TextShadow.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.TextStyle.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
ld: warning: object file (/var/folders/jk/x9t8b40j0tb15ljjlttv13gm0000gp/T/included10772869434321777273/libskparagraph.a(libskparagraph.TextWrapper.o)) was built for newer iOS Simulator version (15.2) than being linked (9.0)
Copy code
Undefined symbols for architecture arm64:
 "_CTFontCollectionCreateFromAvailableFonts", referenced from:
   SkFontMgr_Mac::SkFontMgr_Mac(__CTFontCollection const*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
 "_CTFontCollectionCreateMatchingFontDescriptors", referenced from:
   (anonymous namespace)::SkCopyAvailableFontFamilyNames(__CTFontCollection const*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
 "_CTFontCopyAttribute", referenced from:
   SkCTFontCreateExactCopy(__CTFont const*, double, OpszVariation) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onOpenStream(int*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor*, bool*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontCopyFontDescriptor", referenced from:
   SkTypeface_Mac::Make(std::__1::unique_ptr<__CTFont const, SkOverloadedFunctionObject<void (void const*), &CFRelease>>, OpszVariation, std::__1::unique_ptr<SkStreamAsset, std::__1::default_delete<SkStreamAsset>>)::$_0::operator()() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTFontGetDataFontWeightMapping() in libskia.a(libskia.SkCTFont.o)
 "_CTFontCopyFullName", referenced from:
   SkTypeface_Mac::onGetFontDescriptor(SkFontDescriptor*, bool*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontCopyGraphicsFont", referenced from:
   SkTypeface_Mac::onGetUPEM() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetTableData(unsigned int, unsigned long, unsigned long, void*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onCopyTableData(unsigned int) const in
 "_CTFontCopyTable", referenced from:
   SkTypeface_Mac::onGetTableData(unsigned int, unsigned long, unsigned long, void*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onCopyTableData(unsigned int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontCopyVariation", referenced from:
   SkTypeface_Mac::onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTVariationFromSkFontArguments(__CTFont const*, __CFArray const*, SkFontArguments const&) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontCopyVariationAxes", referenced from:
   SkFontMgr_Mac::onMakeFromStreamArgs(std::__1::unique_ptr<SkStreamAsset, std::__1::default_delete<SkStreamAsset>>, SkFontArguments const&) const in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::getVariationAxes() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onMakeClone(SkFontArguments const&) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)


   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetDescent", referenced from:
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetGlyphCount", referenced from:
   SkTypeface_Mac::getGlyphToUnicodeMap(int*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onCountGlyphs() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontGetGlyphsForCharacters", referenced from:
   SkTypeface_Mac::getGlyphToUnicodeMap(int*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onCharsToGlyphs(int const*, int, unsigned short*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   get_plane_glyph_map(unsigned char const*, __CTFont const*, long, int*, unsigned char) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontGetLeading", referenced from:
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetSize", referenced from:
   SkCTFontCreateExactCopy(__CTFont const*, double, OpszVariation) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetSlantAngle", referenced from:
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontGetSymbolicTraits", referenced from:
   create_from_name(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkTypeface_Mac::Make(std::__1::unique_ptr<__CTFont const, SkOverloadedFunctionObject<void (void const*), &CFRelease>>, OpszVariation, std::__1::unique_ptr<SkStreamAsset, std::__1::default_delete<SkStreamAsset>>)::$_0::operator()() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_CTFontGetUnderlinePosition", referenced from:
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetUnderlineThickness", referenced from:
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetUnitsPerEm", referenced from:
   SkTypeface_Mac::getGlyphToUnicodeMap(int*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontGetXHeight", referenced from:
   SkScalerContext_Mac::generateFontMetrics(SkFontMetrics*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o)
 "_CTFontManagerCreateFontDescriptorFromData", referenced from:
   (anonymous namespace)::ctfont_from_skdata(sk_sp<SkData>, int) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkCTFontGetSmoothBehavior() in libskia.a(libskia.SkCTFont.o)
   SkCTFontGetDataFontWeightMapping() in libskia.a(libskia.SkCTFont.o)
 "_kCTFontFamilyNameAttribute", referenced from:
   (anonymous namespace)::SkCopyAvailableFontFamilyNames(__CTFontCollection const*)::$_2::__invoke(void const*, void*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkFontMgr_Mac::CreateSet(__CFString const*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   create_descriptor(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
 "_kCTFontFamilyNameKey", referenced from:
   SkTypeface_Mac::onCreateFamilyNameIterator() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontFormatAttribute", referenced from:
   SkTypeface_Mac::onOpenStream(int*) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontSlantTrait", referenced from:
   create_descriptor(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkCTFontDescriptorGetSkFontStyle(__CTFontDescriptor const*, bool) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontStyleNameAttribute", referenced from:
   (anonymous namespace)::SkFontStyleSet_Mac::getStyle(int, SkFontStyle*, SkString*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
 "_kCTFontTraitsAttribute", referenced from:
   create_descriptor(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkCTFontDescriptorGetSkFontStyle(__CTFontDescriptor const*, bool) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTFontGetDataFontWeightMapping() in libskia.a(libskia.SkCTFont.o)
 "_kCTFontVariationAttribute", referenced from:
   SkFontMgr_Mac::onMakeFromStreamArgs(std::__1::unique_ptr<SkStreamAsset, std::__1::default_delete<SkStreamAsset>>, SkFontArguments const&) const in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkTypeface_Mac::onMakeClone(SkFontArguments const&) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontVariationAxisDefaultValueKey", referenced from:
   SkTypeface_Mac::onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTVariationFromSkFontArguments(__CTFont const*, __CFArray const*, SkFontArguments const&) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkTypeface_Mac::onGetVariationDesignParameters(SkFontParameters::Variation::Axis*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontVariationAxisIdentifierKey", referenced from:
   SkTypeface_Mac::onGetVariationDesignPosition(SkFontArguments::VariationPosition::Coordinate*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTVariationFromSkFontArguments(__CTFont const*, __CFArray const*, SkFontArguments const&) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)

   SkTypeface_Mac::onGetVariationDesignParameters(SkFontParameters::Variation::Axis*, int) const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
 "_kCTFontWeightTrait", referenced from:
   create_descriptor(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkCTFontDescriptorGetSkFontStyle(__CTFontDescriptor const*, bool) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
   SkCTFontGetDataFontWeightMapping() in libskia.a(libskia.SkCTFont.o)
 "_kCTFontWidthTrait", referenced from:
   create_descriptor(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o)
   SkCTFontDescriptorGetSkFontStyle(__CTFontDescriptor const*, bool) in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o)
ld: symbol(s) not found for architecture arm64

> Task :shared:linkPodDebugFrameworkIosSimulatorArm64 FAILED
error: Compilation finished with errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:linkPodDebugFrameworkIosSimulatorArm64'.
> Compilation finished with errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 49s
2 actionable tasks: 1 executed, 1 up-to-date
Hello all, does anyone have an idea about this issue?
s
I already have that in my gradle.properties 😞
Copy code
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"

#Kotlin
kotlin.code.style=official

#Android
android.useAndroidX=true
android.nonTransitiveRClass=true
android.enableJetifier=true

#MPP
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2

kotlin.version=1.8.20
agp.version=8.0.2
compose.version=1.4.0

org.jetbrains.compose.experimental.uikit.enabled=true
kotlin.native.cacheKind=none
j
What about the
isStatic
property?
👀 1
🔍 1
s
Wow, that works, thank you!! However, there's a separate exception that is thrown on button click with regards to kotlin coroutines.. I'll try to debug that. Thanks!
319 Views