geoswift / geoswiftmapkit Goto Github PK
View Code? Open in Web Editor NEWAdd-on to GEOSwift that provides MapKit-related features
License: MIT License
Add-on to GEOSwift that provides MapKit-related features
License: MIT License
When previewing small polygons (one or two blocks), the zoom level of the map is to high, the polygons are really small, how is the zoom level calculated ? Is there a way to improve it ?
Relatively new to swift development so I apologize in advance if I am missing info or made a glaring mistake. I am currently trying to integrate GEOSwiftMapKit into an existing project. Before fully adopting it I was hoping to utilize the given playground but I cannot get it to build correctly in Xcode.
Swift --version
Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57) Target: arm64-apple-darwin20.6.0
xed --version
xed version 12.5.1
M1 Mac mini
Steps I took:
Cloned repository
opened with xed Package.swift
No scheme was present to build for
When opening playground I get a No Such module geoswift exists
Opened by selecting the GEOSwiftMapkit.xcodeproj file
GEOSwiftMapKit-ios scheme does show up
Added package dependencies for GEOSwift and geos but the framework errors persisted.
Our builds no longer upload to the AppStore. The build remains "processing" on the AppStore (for more than a week). We have a similar problem with distributing AD HOC builds.
ipatool failed with an exception: #<CmdSpec::NonZeroExitException:
In the pipeline logs I find this:
Ld: cd /var/folders/0l/yh2s2_ld48n32kxxldfht02h0000gn/T/tempaiweugcw
['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld', '-arch', 'arm64', '-r', '-platform_version', 'iOS', '10.0', '13.7', '-no_objc_category_merging', '-syslibroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk', '-sdk_version', '13.7', '-filelist', '/private/var/folders/0l/yh2s2_ld48n32kxxldfht02h0000gn/T/tempbu90v7w8/718.o.LinkFileList', '-ignore_auto_link', '-allow_dead_duplicates', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a', '-o', '/private/var/folders/0l/yh2s2_ld48n32kxxldfht02h0000gn/T/tempbu90v7w8/718.o']
-= Output =-
ld: warning: -sdk_version and -platform_version are not compatible, ignoring -sdk_version
Exited with 0
Command took 0 seconds
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/lib/libc++.1.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/UIKit.framework/UIKit.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/Security.framework/Security.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/lib/libsqlite3.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/lib/libz.1.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/StoreKit.framework/StoreKit.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/Accelerate.framework/Accelerate.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreData.framework/CoreData.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreImage.framework/CoreImage.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreLocation.framework/CoreLocation.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreText.framework/CoreText.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/GLKit.framework/GLKit.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/ImageIO.framework/ImageIO.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/OpenGLES.framework/OpenGLES.tbd
Found framework/dylib: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore.tbd
Search Path: /var/folders/0l/yh2s2_ld48n32kxxldfht02h0000gn/T/ipatool20210215-23648-fxa81r/thinned-out/arm64/Payload/Parking4411.app/Frameworks, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/usr/lib, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks
geos not found in dylib search path
Stderr:
>
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:373:in `run'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2808:in `block in CompileOrStripBitcodeInBundle'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2747:in `each'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2747:in `CompileOrStripBitcodeInBundle'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:3016:in `block in ProcessIPA'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2978:in `each'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2978:in `ProcessIPA'
/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:3928:in `<main>'";
info = {
};
level = ERROR;
type = exception;
}
);
}
It looks liks the geos integration with Swift Package Manager is not going correctly. Any hints?
Hello folks, latest version of GEOSwift has been 9.0.0 for a year now, wondering if there is any reason not to update dependency of this pod to that version. Currently using GEOSwiftMapKit locks you on 8.x.x. Cheers!
Split out from #4
Just tried adding GEOSwiftMapKit to my Xcode iOS project via Xcode SwiftPM integration, and it failed when I try to run:
dyld: Library not loaded: @rpath/libgeos.dylib
Referenced from: /private/var/containers/Bundle/Application/[REDACTED]/[REDACTED].app/[REDACTED]
Reason: image not found
(lldb)
Versions:
Those are figured out by Swift PM itself.
And it works charmingly on simulator, but only leaves such an error on application starting when tested on an actual device.
When CocoaPods tries to install the library, the following message is displayed:
[!] CocoaPods could not find compatible versions for pod "GEOSwift":
In snapshot (Podfile.lock):
GEOSwift (= 5.1.0)
In Podfile:
GEOSwift
GEOSwiftMapKit was resolved to 1.0.0, which depends on
GEOSwift (= 5.0.0)
PS: The CocoaPods version is 1.8.3
SPM now supports bundled resources, so we can update the quick look tests to work in SPM
GEOSwift has already supported Swift PM. Please support it so we can use it more easily.
#17 deleted the quick look tests due to an issue with either xcodebuild or GH Actions. A reproducible test case has been created at https://github.com/macdrevx/ActionsErrorDemo and bugs are open with both GitHub and Apple.
Here's a summary of the bug:
xcodebuild fails with error "Error deleting scheme: Cannot modify data because the process disallows saving"
Xcode 14.2
I've run into a peculiar issue with building a Swift package with xcodebuild. I've only been able to repro when running the build on GitHub Actions. Example:
https://github.com/macdrevx/ActionsErrorDemo/actions/runs/4507794222/jobs/7935907313
https://github.com/macdrevx/ActionsErrorDemo is a minimal Swift package that depends on another minimal Swift package https://github.com/macdrevx/ActionsErrorDemoDependency
The only interesting thing about either package is that the test target for ActionsErrorDemo contains some image resources.
The necessary conditions to repro the bug seem to include:
$ xcodebuild -scheme ActionsErrorDemo -sdk "${{ matrix.sdk }}" -destination "${{ matrix.destination }}" clean test
s.dependency 'GEOSwift', '5.0.0'
Dependency is set to version 5.0.0
โ๏ธ , but 5.2.0
is already released. Can you update it?
To reproduce:
In file GeoSwift+MapKitQuickLook the compiler fails this with message "'Polygon' is ambiguous for type lookup in this context"
once in
extension Polygon.LinearRing: GEOSwiftQuickLook {
and once in
extension Polygon: GEOSwiftQuickLook {
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.