I am trying to use Cocoapods gradle plugin to get...
# multiplatform
k
I am trying to use Cocoapods gradle plugin to get MapLibre working,
Copy code
cocoapods {
    pod("MapLibre", "6.9.0")
}
but I keep getting this error: Specs satisfying the
MapLibre (= 6.9.0)
dependency were found, but they required a higher minimum deployment target. does anyone know how to fix this? I can't see how to set minimum deployment
t
cc @Andrey Yastrebov
👀 1
a
You can set the target like this:
Copy code
cocoapods {
  ios.deploymentTarget = "16.6"
}
k
Thanks, I got a LOAD of errors about types being wrong after that though, so I think it doesnt like xcode version
Copy code
Exception in thread "main" java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/c_standard_library.modulemap:317:8: error: module '_stddef' requires feature 'found_incompatible_headers__check_search_paths'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/c_standard_library.modulemap:317:8: error: module '_stddef' requires feature 'found_incompatible_headers__check_search_paths'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/c_standard_library.modulemap:317:8: error: module '_stddef' requires feature 'found_incompatible_headers__check_search_paths'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/arm/_types.h:75:9: error: unknown type name 'ptrdiff_t'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/arm/_types.h:85:9: error: unknown type name 'size_t'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/usr/include/arm/_types.h:101:9: error: unknown type name 'wchar_t'
a
Do you use Xcode 16.3? If yes, try to bump kotlin to 2.1.21
k
That got it a LOT father, still fails when compiling for iOS now though sadly
Copy code
ld: warning: search path '/Users/katrinaknight/Projects/jetlag/JetLag Companion/shared/build/xcode-frameworks/Debug/iphoneos18.4' not found
ld: warning: Could not find or use auto-linked framework 'MapLibre': framework 'MapLibre' not found
ld: warning: Could not parse or use implicit file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
Undefined symbols for architecture arm64:
  "_MLNAltitudeForZoomLevel", referenced from:
      _cocoapods_MapLibre_MLNAltitudeForZoomLevel_wrapper20 in ComposeApp[2808](libdev.sargunv.maplibre-compose:maplibre-compose-cinterop-MapLibre-cache.a.o)
  "_MLNZoomLevelForAltitude", referenced from:
      _cocoapods_MapLibre_MLNZoomLevelForAltitude_wrapper21 in ComposeApp[2808](libdev.sargunv.maplibre-compose:maplibre-compose-cinterop-MapLibre-cache.a.o)
  "_OBJC_CLASS_$_MLNLoggingConfiguration", referenced from:
       in ComposeApp[2816](libdev.sargunv.maplibre-compose:maplibre-compose-cache.a.o)
  "_OBJC_CLASS_$_MLNMapCamera", referenced from:
       in ComposeApp[2816](libdev.sargunv.maplibre-compose:maplibre-compose-cache.a.o)
  "_OBJC_CLASS_$_MLNMapView", referenced from:
       in ComposeApp[2816](libdev.sargunv.maplibre-compose:maplibre-compose-cache.a.o)
  "_OBJC_CLASS_$_MLNSource", referenced from:
       in ComposeApp[2816](libdev.sargunv.maplibre-compose:maplibre-compose-cache.a.o)
  "_OBJC_CLASS_$_MLNStyleLayer", referenced from:
       in ComposeApp[2816](libdev.sargunv.maplibre-compose:maplibre-compose-cache.a.o)
ld: symbol(s) not found for architecture arm64
but that was so much closer, with the bump, thankyou
a
Can you provide a minimal reproducer sample?
k
https://github.com/GaeaKat/JetLag_Companion I had only just started it, I am using xCode 16.3, MacOs 15.5 Beta
a
Ok, I see the problem. You are mixing cocoapods integration and direct integration. You should use only one, cocoapods in your case. Refer to our cocoapods + compose sample
k
Direct integration? sorry
k
keep getting more weird errors, so I am going to focus on android I think for now to be safe, still using lotlin though
kotlin*