placenote / placenotesdk-ios Goto Github PK
View Code? Open in Web Editor NEWPlacenoteSDK Sample app in native iOS using ARKit, written primarily in Swift
Home Page: https://placenote.com
PlacenoteSDK Sample app in native iOS using ARKit, written primarily in Swift
Home Page: https://placenote.com
I just downloaded the project from github and i get that error
Currently, ARKit generates planes and hittest results in ARKit frame.
At the very least, we need to expose and document utility functions that calculates the pose of these geometries in map frame.
Ideally, we can do this automatically under the hood.
So I have been trying to build the latest version:
https://github.com/Placenote/PlacenoteSDK-iOS/releases/download/v1.7/PlacenoteSDKExample.tar.gz
I'm using the tar file to avoid the git lfs issues previously mentioned.
After untar, and 'pod install' and loading the xcworkspace Xcode says
"Unsupported Swift Version, the target PlacenoteSDK contains source code developed using Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets"
So then I run 'pod update' to get the 1.7 version (it updated from 1.6.12)
However, then you get
Undefined symbols for architecture arm64:
"_PNSetFrame", referenced from:
_setFrameNative in LibPlacenote.o
"_PNGetPose", referenced from:
_getPoseNative in LibPlacenote.o
"_PNSetIntrinsics", referenced from:
_setIntrinsicsNative in LibPlacenote.o
"_PNInitialize", referenced from:
etc, etc, 19 errors in all
However, the Placenote file itself seems to be intact:
ls -la Pods/PlacenoteSDK/Placenote.framework/Placenote
-rwxr-xr-x 1 user staff 8167520 Oct 8 10:46 ./
If diffing to this, its the same file as this:
https://github.com/Placenote/PlacenoteSDK-CocoaPod/raw/master/Placenote.framework/Placenote
Can someone verify its possible to build the example ?
Thanks!
I have added below pod into my new Swift project.
# Uncomment the next line to define a global platform for your project
# platform :ios, '11.0'
target 'test' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for test
pod 'PlacenoteSDK'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
And I am getting this errors after pod install
.
I have also installed Homebrew
via terminal with brew install git-lfs
command.
now I am running into below errors.
I have also tried with clear derived data, clean project, and restart Xcode. But it is not working. Please help.
Currently, users would have to check the status of the session via GetStatus() in the OnPose callback to determine what to do, but they really don't have need for a pose that's not correct.
Hi,
I did everything as described in the Readme.
However, when I try to build the Xcode project, I get the following error:
ViewController.swift:13:8: No such module 'PlacenoteSDK'
Any ideas on this?
Br
Jakob
Working with Placenote SDK as I need to measure walls and build wireframe based on that measurement. However, my app allows to open AR Camera multiple times (like, measure room 1 - save, measure room 2 - save, and so on). Such ways, memory grows to so large that my app crashes unfortunately after 12-15 times opening AR camera.
Basically my rooms controller is list of rooms in tableview and clicking on Add button navigates to another view controller which opens AR Camera.
I tried instruments and found out Placenote SDK is growing memory. I downloaded Placenote SDK Example and tried to check memory outage with this project as well, like, create a view controller with measure button and clicking measure navigates to main view controller which open AR Camera from example (mimicking my rooms project). I found in this demo also memory outage is there.
I tried many things, but in vein, my memory outage is can't be reduced much.
Would you suggest me how to overcome such issues? I know example code is not target for memory optimisations but I want suggestions on that. Removing multi-delegates helped but still some of memory is still occupied.
A user reported an frozen screen during mapping. Here's the behavior: https://youtu.be/O3nL5EGMX0M
Behavior is the same in Debug and Release mode.
I build and run in my iPad.But the debuggershows:
dyld: Library not loaded: @rpath/Placenote.framework/Placenote
Referenced from: /var/containers/Bundle/Application/DCFED95C-AB98-43F5-9C65-CFE00D9F2D19/placenote.app/placenote
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/DCFED95C-AB98-43F5-9C65-CFE00D9F2D19/placenote.app/Frameworks/Placenote.framework/Placenote: code signing blocked mmap() of '/private/var/containers/Bundle/Application/DCFED95C-AB98-43F5-9C65-CFE00D9F2D19/placenote.app/Frameworks/Placenote.framework/Placenote'
Message from debugger: Terminated due to signal 6
Is it a signature problem? Please save me- -
Ld /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Products/Debug-iphoneos/PlacenoteSDK/PlacenoteSDK.framework/PlacenoteSDK normal arm64
cd /Users/girijeshkumar/Downloads/PlacenoteSDK-iOS-1.4.3/Pods
export IPHONEOS_DEPLOYMENT_TARGET=11.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk -L/Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Products/Debug-iphoneos/PlacenoteSDK -F/Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Products/Debug-iphoneos/PlacenoteSDK -F/Users/girijeshkumar/Downloads/PlacenoteSDK-iOS-1.4.3/Pods/PlacenoteSDK -filelist /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/PlacenoteSDK.build/Objects-normal/arm64/PlacenoteSDK.LinkFileList -install_name @rpath/PlacenoteSDK.framework/PlacenoteSDK -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=11.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/PlacenoteSDK.build/Objects-normal/arm64/PlacenoteSDK_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/PlacenoteSDK.build/Objects-normal/arm64/PlacenoteSDK.swiftmodule -framework Placenote -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/PlacenoteSDK.build/Objects-normal/arm64/PlacenoteSDK_dependency_info.dat -o /Users/girijeshkumar/Library/Developer/Xcode/DerivedData/PlacenoteSDKExample-gzttriufetdqqnclcqfucdvnsiwx/Build/Products/Debug-iphoneos/PlacenoteSDK/PlacenoteSDK.framework/PlacenoteSDK
ld: warning: ignoring file /Users/girijeshkumar/Downloads/PlacenoteSDK-iOS-1.4.3/Pods/PlacenoteSDK/Placenote.framework/Placenote, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/girijeshkumar/Downloads/PlacenoteSDK-iOS-1.4.3/Pods/PlacenoteSDK/Placenote.framework/Placenote
Undefined symbols for architecture arm64:
"_PNSetFrame", referenced from:
_setFrameNative in LibPlacenote.o
"_PNGetPose", referenced from:
_getPoseNative in LibPlacenote.o
"_PNSetIntrinsics", referenced from:
_setIntrinsicsNative in LibPlacenote.o
"_PNInitialize", referenced from:
_initializeSDK in LibPlacenote.o
"_PNStartRecordDataset", referenced from:
PlacenoteSDK.LibPlacenote.startReportRecord(uploadProgressCb: (Swift.Bool, Swift.Bool, Swift.Float) -> ()) -> () in LibPlacenote.o
"_PNSaveMap", referenced from:
closure #1 (Swift.UnsafeMutablePointer<__C.PNCallbackResult_t>?, Swift.UnsafeMutableRawPointer?) -> () in PlacenoteSDK.LibPlacenote.saveMap(savedCb: (Swift.String?) -> (), uploadProgressCb: (Swift.Bool, Swift.Bool, Swift.Float) -> ()) -> () in LibPlacenote.o
"_PNAddMap", referenced from:
PlacenoteSDK.LibPlacenote.saveMap(savedCb: (Swift.String?) -> (), uploadProgressCb: (Swift.Bool, Swift.Bool, Swift.Float) -> ()) -> () in LibPlacenote.o
"_PNListMaps", referenced from:
PlacenoteSDK.LibPlacenote.fetchMapList(listCb: (Swift.Bool, [Swift.String : Any]) -> ()) -> () in LibPlacenote.o
"_PNStopSession", referenced from:
PlacenoteSDK.LibPlacenote.stopSession() -> () in LibPlacenote.o
"_PNDeleteMap", referenced from:
PlacenoteSDK.LibPlacenote.deleteMap(mapId: Swift.String, deletedCb: (Swift.Bool) -> ()) -> () in LibPlacenote.o
"_PNSetMetadata", referenced from:
PlacenoteSDK.LibPlacenote.setMapMetadata(mapId: Swift.String, metadataJson: Swift.String) -> Swift.Bool in LibPlacenote.o
"_PNGetStatus", referenced from:
PlacenoteSDK.LibPlacenote.getMappingStatus() -> PlacenoteSDK.LibPlacenote.MappingStatus in LibPlacenote.o
"_PNGetAllLandmarks", referenced from:
PlacenoteSDK.LibPlacenote.getAllLandmarks() -> [__C.PNFeaturePoint_t] in LibPlacenote.o
"_PNGetTrackedLandmarks", referenced from:
PlacenoteSDK.LibPlacenote.getTrackedLandmarks() -> [__C.PNFeaturePoint_t] in LibPlacenote.o
"_PNLoadMap", referenced from:
PlacenoteSDK.LibPlacenote.loadMap(mapId: Swift.String, downloadProgressCb: (Swift.Bool, Swift.Bool, Swift.Float) -> ()) -> () in LibPlacenote.o
"_PNStartSession", referenced from:
PlacenoteSDK.LibPlacenote.startSession() -> () in LibPlacenote.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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.