https://kotlinlang.org logo
#decompose
Title
# decompose
a

Ahmad Hassan

03/17/2023, 11:39 AM
Hi! I'm using decompose in KMP compose project. Android is working fine. I'm facing this issue while trying to run on iOS SkScalerContext_Mac::generateMetrics(SkGlyph*, SkArenaAlloc*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o) SkScalerContext_Mac::generatePath(SkGlyph const&, SkPath*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o) "_CTFontCreateWithFontDescriptor", referenced from: SkFontMgr_Mac::onMatchFamilyStyle(char const*, SkFontStyle const&) const in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) SkFontMgr_Mac::onMatchFamilyStyleCharacter(char const*, SkFontStyle const&, char const**, int, int) const in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) (anonymous namespace):SkFontStyleSet Mac:createTypeface(int) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) (anonymous namespace):SkFontStyleSet Mac:matchStyle(SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) (anonymous namespace)::ctfont_from_skdata(sk_sp<SkData>, int) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) create_from_name(char const*, SkFontStyle const&) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) SkCTFontGetSmoothBehavior() in libskia.a(libskia.SkCTFont.o) ... "_CTFontDescriptorCopyAttribute", referenced from: (anonymous namespace)::SkCopyAvailableFontFamilyNames(__CTFontCollection const*)::$_2::__invoke(void const*, void*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) (anonymous namespace):SkFontStyleSet Mac:getStyle(int, SkFontStyle*, SkString*) 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) "_CTFontDescriptorCreateMatchingFontDescriptors", referenced from: SkFontMgr_Mac::CreateSet(__CFString const*) in libskia.a(fontmgr_mac_ct.SkFontMgr_mac_ct.o) "_CTFontDescriptorCreateWithAttributes", 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) 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) SkCTFontCreateExactCopy(__CTFont const*, double, OpszVariation) 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) "_CTFontDrawGlyphs", referenced from: SkCTFontGetSmoothBehavior() in libskia.a(libskia.SkCTFont.o) SkScalerContext_Mac:Offscreen:getCG(SkScalerContext_Mac const&, SkGlyph const&, unsigned short, unsigned long*, bool) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o) "_CTFontGetAdvancesForGlyphs", referenced from: SkScalerContext_Mac::generateMetrics(SkGlyph*, SkArenaAlloc*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o) "_CTFontGetAscent", 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) "_CTFontGetBoundingBox", 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) "_CTFontGetBoundingRectsForGlyphs", referenced from: SkTypeface_Mac::onGetAdvancedMetrics() const in libskia.a(fontmgr_mac_ct.SkTypeface_mac_ct.o) SkScalerContext_Mac::generateMetrics(SkGlyph*, SkArenaAlloc*) in libskia.a(fontmgr_mac_ct.SkScalerContext_mac_ct.o) "_CTFontGetCapHeight", 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) "_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, SkFunctionWrapper<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) "_kCTFontVariationAxisMaximumValueKey", referenced from: 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) "_kCTFontVariationAxisMinimumValueKey", referenced from: 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 x86_64
Task sharedlinkDebugFrameworkIosX64 FAILED
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'sharedlinkDebugFrameworkIosX64'.
Compilation finished with errors
a

Arkadii Ivanov

03/17/2023, 11:54 AM
Hey! This looks like a known issue in Compose - https://github.com/JetBrains/compose-multiplatform/issues/2211 Maybe comment there?
24 Views