PlacenoteSDK Sample app in native iOS using ARKit, written primarily in Swift

Overview

Placenote SDK for iOS

Placenote SDK lets you easily build cloud-based Augmented Reality (AR) apps that pin digital content to locations in the real world. The SDK is compatible with all ARKit enabled phones and can be used to create persistent augmented reality experiences using Swift and SceneKit.

The SDK includes 3 sample Xcode projects that you can use as starting points for your projects.


Using this Github repository

  • If you want to download this sample project, please DO NOT download the source as a zip file, because you will not get all the neccessary library files if you do so. Please follow the download instructions in the documentation.

Resources

Comments
  • Not able to compile the code on xcode 9.3

    Not able to compile the code on xcode 9.3

    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)

    opened by girijeshkumar2007 8
  • Getting an errors after installing pod into my fresh project.

    Getting an errors after installing pod into my fresh project.

    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.

    screen shot 2018-07-21 at 1 09 32 pm

    I have also tried with clear derived data, clean project, and restart Xcode. But it is not working. Please help.

    opened by KheniDharmesh 5
  • Must I have to resign the Placenote.framework?

    Must I have to resign the Placenote.framework?

    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- -

    opened by JeremyRenner 3
  • Error: No such module 'PlacenoteSDK'

    Error: No such module 'PlacenoteSDK'

    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

    opened by jakobjw 2
  • 1.8 release candidate

    1.8 release candidate

    • Added thumbnail synchronization API
    • Added LocalizationThumbnailSelector
    • Updated function names to match Unity counterpart
    • Updated comments
    • Updated setARFrame to use ARFrame instead of just the image and pose
    • Added sample apps to match Unity counterpart
    opened by y22ma 0
  • Ios 12 fix

    Ios 12 fix

    Resolution changes in ios 12 in iphone 7 and up is causing issue with our mapping algorithm. This is a new library to account for this resolution change.

    opened by y22ma 0
  • building with Xcode 11.1/iOS13 ?

    building with Xcode 11.1/iOS13 ?

    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!

    opened by jhjulkun 0
  • Facing memory crash with Placenote SDK

    Facing memory crash with Placenote SDK

    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.

    opened by mobihunterz 3
Releases(v1.8)
Owner
Placenote
Persistent Augmented Reality toolkit
Placenote
IOS example app to generate point clouds in ARKit using scenedepth

Visualizing a Point Cloud Using Scene Depth Place points in the real-world using the scene's depth data to visualize the shape of the physical environ

Isak Diaz 20 Oct 31, 2022
AR Ruler - A simple iOS app made using ARKit and SceneKit

A simple iOS app made using ARKit and SceneKit.Which can try to simplify little things in your life such as measuring stuff.

Dishant Nagpal 5 Aug 31, 2022
ARID - Augmented Reality app using Apple’s ARKit framework which can recognise faces of famous scientists

ARID Augmented Reality app using Apple’s ARKit framework which can recognise fac

Hemanth 0 Jan 12, 2022
ARDicee - Simple augmented reality app using SceneKit and ARKit

ARDicee Simple augmented reality app using SceneKit and ARKit Requirements Xcode

donggyu 3 Feb 4, 2022
A library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.

ARKitEnvironmentMapper Example To run the example project, clone the repo, and run pod install from the Example directory first. Installation ARKitEnv

SV Hawks 91 Dec 4, 2022
A library that allows you to generate and update environment maps in real-time using the camera feed and ARKit's tracking capabilities.

ARKitEnvironmentMapper Example To run the example project, clone the repo, and run pod install from the Example directory first. Installation ARKitEnv

SV Hawks 91 Dec 4, 2022
This is a sample AR project written with Swift language for iOS devices

ARSample This is a sample AR project written with Swift language for iOS devices. While I was learning the ARKit framework, I defined this project and

Kamyar Sehati 2 Jun 27, 2022
Reality-iOS - NFT Augmented Reality(AR) app that demonstrate application of ARImageTracking in iOS powered by ARKit 2

Reality-iOS NFT Augmented Reality(AR) app that demonstrate application of ARImag

Ikmal Azman 6 Nov 28, 2022
Furniture E-Commerce Augmented Reality(AR) app in iOS powered by ARKit

HomeMax-iOS Furniture E-Commerce Augmented Reality(AR) app in iOS powered by ARKit and SceneKit. Inspired by IKEA place app. Description Experience on

Ikmal Azman 5 Oct 14, 2022
An iOS Framework Capture & record ARKit videos 📹, photos 🌄, Live Photos 🎇, and GIFs 🎆.

An iOS Framework that enables developers to capture videos ?? , photos ?? , Live Photos ?? , and GIFs ?? with ARKit content.

Ahmed Bekhit 1.5k Dec 24, 2022
ARKit + CoreLocation: Combines the high accuracy of AR with the scale of GPS data.

ARKit: Uses camera and motion data to map out the local world as you move around. CoreLocation: Uses wifi and GPS data to determine your global locati

Andrew Hart 5.3k Dec 27, 2022
ARKit Demo Application

ARKitNavigationDemo Work in progress. In Progress Region — For one, we could render far fewer nodes. In fact, it’s a bit distracting that the entire t

Christopher Webb 296 Dec 16, 2022
ARKit Base Project. Place virtual objects based on WWDC example project

ARKit - Placing Virtual Objects in Augmented Reality Learn best practices for visual feedback, gesture interactions, and realistic rendering in AR exp

Ignacio Chiazzo Cardarello 338 Jan 5, 2023
This library uses ARKit Face Tracking in order to catch user's smile.

SmileToUnlock Make your users smile before opening the app :) Gif with the demonstration Installation Cocoapods The most preferable way to use this li

Ruslan Serebriakov 628 Oct 22, 2022
Power! Unlimited power for ARKit 2.0!

A long time ago in a galaxy, far, far away... It is a period when iPhone SE and iPhone X were destroyed from the apple store, the AR market was under

KBOY (Kei Fujikawa) 516 Dec 1, 2022
Augmented Reality image tracking with SwiftUI, RealityKit and ARKit 4.

ARImageTracking This is an Augmented Reality Xcode project that uses Apple's newest RealityKit framework and ARKit 4 features, to dynamically track a

Richard Qi 198 Dec 7, 2022
A simple application created for educational purposes for mastering ARKit

ARDrawing AR Drawing is a simple application created for educational purposes for mastering ARKit. The basis of the project is copied from the project

NIKOLAY NIKITIN 0 Oct 20, 2022
Trying TDD with ARKit

ARPlacer BDD Spec As a user I want to place a random object in real world. I also want to see the distance between AR object and my phone. Use Cases

null 0 Dec 21, 2021
Draw VR content over live camera feed with ARKit

funny-ar Exercise with ARKit: draw VR content over live camera feed: work is in

pavel 3 Dec 18, 2021