Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to compile the code on xcode 9.3 #32

Closed
girijeshkumar2007 opened this issue Apr 16, 2018 · 8 comments
Closed

Not able to compile the code on xcode 9.3 #32

girijeshkumar2007 opened this issue Apr 16, 2018 · 8 comments

Comments

@girijeshkumar2007
Copy link

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)

@pmukherj
Copy link
Contributor

Hey @girijeshkumar2007.

Sorry you are having this trouble. This is most likely because you are missing some of the library files. These are large files and therefore stored in git lfs. You have two options here:
a) We have some instructions to install git lfs in the github readme:
To Install these files, install lfs either using HomeBrew:
brew install git-lfs
or MacPorts:
port install git-lfs
And then, to get the library files, run:
git lfs install
git lfs pull

or
b)You can get a complete tar ball with everything included right here: https://github.com/Placenote/PlacenoteSDK-iOS/releases/download/v1.4.3/PlacenoteSDKExample.tar.gz

@y22ma
Copy link
Contributor

y22ma commented Apr 27, 2018

@girijeshkumar2007 just checking if this resolved your issue?

@0x106
Copy link

0x106 commented May 27, 2018

I'm having this same error when using cocoapods. The files all appear to be retrieved correctly, however it can't seem to link against them. I'm building for a valid device etc. Everything works fine if I add Placenote manually.

@pmukherj
Copy link
Contributor

pmukherj commented May 27, 2018

hey @Jordan-campbell,

Just checking that by "files all appear to be retrieve correctly", is Placenote.framework file 7-9MBish?

@0x106
Copy link

0x106 commented May 27, 2018

Ok no, it's not! It's only 25KB.

It includes these files / directories:

_CodeSignature
Headers
Info.plist
Modules
Placenote

But they are all a few kb.

@pmukherj
Copy link
Contributor

pmukherj commented May 27, 2018

Right, so that's why its not able to link it. The main binary is the file: Placenote.framework/Placenote and it should be atleast 7.4MB.

We've seen this problem before and its due to some configuration issue within CocoaPods on some setups. Please copy-paste Placenote.framework file for now (from our sample app), we are working on a fix!

@0x106
Copy link

0x106 commented May 27, 2018

Ok thank you!

Unsure if it helps but my pod env output looks like:

   CocoaPods : 1.5.2
        Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
    RubyGems : 2.5.2
        Host : Mac OS X 10.13.4 (17E199)
       Xcode : 9.3.1 (9E501)
         Git : git version 2.16.2
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : devspec - https://github.com/Jordan-Campbell/podspecs.git @ f8ad86b7c284783942863691fe4901318a052923
               master - https://github.com/CocoaPods/Specs.git @ 43d9f4c2f5a8ebda4c301874fcb8a195c8737cef

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.0
cocoapods-try         : 1.1.0

@pmukherj
Copy link
Contributor

Thanks! This is helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants