Build WikitudeAPI-SCM-Test of project WikitudeAPI-SCM-Test with configuration Debug
Ld build/Debug-iphonesimulator/WikitudeAPI-SCM-Test.app/WikitudeAPI-SCM-Test normal i386
cd /Users/srinivas/Downloads/WikitudeAPI_iPhone_1.0.7/SampleApp
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/srinivas/Downloads/WikitudeAPI_iPhone_1.0.7/SampleApp/build/Debug-iphonesimulator -L../WikitudeAPI -L../WikitudeAPI/usr -L../WikitudeAPI/usr/local -L../WikitudeAPI/usr/local/include -L../WikitudeAPI/usr/local/resources -L../WikitudeAPI/usr/local/resources/images -L../WikitudeAPI/usr/local/resources/libs -L../WikitudeAPI/usr/local/resources/nibs -L../WikitudeAPI/usr/local/resources/images/RECHECK -F/Users/srinivas/Downloads/WikitudeAPI_iPhone_1.0.7/SampleApp/build/Debug-iphonesimulator -filelist /Users/srinivas/Downloads/WikitudeAPI_iPhone_1.0.7/SampleApp/build/WikitudeAPI-SCM-Test.build/Debug-iphonesimulator/WikitudeAPI-SCM-Test.build/Objects-normal/i386/WikitudeAPI-SCM-Test.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework CoreData -framework CoreFoundation -framework CoreLocation -framework MapKit -framework MessageUI -framework QuartzCore -framework SystemConfiguration -lsqlite3.0 -lWikitudeAPI -lGoogleAnalytics -o /Users/srinivas/Downloads/WikitudeAPI_iPhone_1.0.7/SampleApp/build/Debug-iphonesimulator/WikitudeAPI-SCM-Test.app/WikitudeAPI-SCM-Test
ld: warning: in ../WikitudeAPI/libWikitudeAPI.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_WTPoi", referenced from:
objc-class-ref-to-WTPoi in WikitudeAPI_SCM_TestAppDelegate.o
objc-class-ref-to-WTPoi in CustomMenuButtonDelegateImpl1.o
"_OBJC_CLASS_$_WikitudeARCustomMenuButton", referenced from:
objc-class-ref-to-WikitudeARCustomMenuButton in WikitudeAPI_SCM_TestAppDelegate.o
"_OBJC_CLASS_$_WikitudeARViewController", referenced from:
objc-class-ref-to-WikitudeARViewController in WikitudeAPI_SCM_TestAppDelegate.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl1.o
objc-class-ref-to-WikitudeARViewController in CustomMenuButtonDelegateImpl3.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
0
A
回答
2
Wikitude SDK只適用於實際的iOS設備,模擬器不支持相機和必要的傳感器(加速度計,磁強計)。
請嘗試構建和部署一個實際的iOS設備,然後按預期正常工作了。
乾杯, 薩科
0
這是一個老的文章,但我沒有找到一個肯定的回答。其實,我找到了一種方法,使之能夠在模擬器編譯。首先,我使用Wikitude實現編輯類(包括h和m)並使用條件:它在不是模擬器時加載接口和實現,而在它是模擬器時加載另一個接口和實現:
example.h文件
#import <UIKit/UIKit.h>
#import "Example.h"
#if !TARGET_IPHONE_SIMULATOR
#import <WikitudeSDK/WTArchitectView.h>
@interface Example : UIViewController <WTArchitectViewDelegate>
{
WTArchitectView *_architectView;
}
@property (nonatomic, strong) WTArchitectView *architectView;
@end
#else
@interface Example : UIViewController {
}
@end
#endif
Example.m
#import "Example.h"
#if !TARGET_IPHONE_SIMULATOR
@interface Example() {
}
@end
@implementation Example // implementation for devices
.
.
.
@end
#else
@interface Example()
@end
@implementation Example // implementation for simulator
.
.
.
@end
#endif
要編譯模擬器上和設備上之間進行切換,您只需爲當前目標停用或激活WikitudeSDK.framework:
1)從左側面板的「Project Navigator」中選擇WikitudeSDK.framework。
2)停用它用於使用所述右面板上的「文件檢查」當前目標。
它爲我工作。
此致敬禮!
相關問題
- 1. 如果我編譯Java程序,我得到這個錯誤
- 2. 我得到這個錯誤,當我嘗試運行我的Android應用程序
- 3. GCC編譯我得到這些錯誤的錯誤
- 4. 我在evennode部署我的nodejs應用程序,但我得到這個錯誤
- 5. 我如何編譯我的應用程序在Xcode與這些錯誤 - LibCurl
- 6. 請幫我解決這些錯誤
- 7. 請幫我理解這些錯誤
- 8. 如果我編譯我使用的Java程序,我得到這個錯誤,?
- 9. 爲什麼我在Android應用程序中遇到這些編譯錯誤?
- 10. 當我運行我在eclipse的Android應用程序,我得到這個錯誤
- 11. 當我執行Web服務應用程序時,我總是得到這個錯誤,你能幫助我嗎?
- 12. 我不明白這些編譯錯誤
- 13. 我試圖建立Kubernetes執行人gitlab但我得到錯誤
- 14. 我試圖運行autoencoder_layers.py使用基於GPU keras但我得到這個錯誤
- 15. 請幫我找到這個錯誤
- 16. 在我的phpmyadmin當我使用這個程序我得到這個SQL錯誤
- 17. C++,VS2005請幫我解決這個編譯錯誤
- 18. 試圖設置GNU C++編譯器,但我得到一個錯誤,我不明白當我試圖編譯hello.cpp
- 19. Python:試圖使用Scrapy,得到這個錯誤...幫我理解這個?
- 20. 爲什麼我得到這些錯誤?
- 21. 請幫幫我。如何處理這個錯誤。當我在另一臺計算機上運行我的應用程序得到這個消息:
- 22. 這個程序有編譯時錯誤。請幫我將它們刪除
- 23. 當我嘗試運行我的WEB應用我得到這個錯誤
- 24. 嗨,我想禁用(刪除)這些權限從我的應用程序
- 25. 錯誤LNK2019 - 我覺得我的代碼應該編譯,但得到這個錯誤
- 26. 我試圖建立和Xcode 4.4歸檔應用程序,但我得到這個錯誤
- 27. 我試圖編譯我的Java項目在命令提示符,它給了我這些錯誤
- 28. 當我寫這行到flex代碼,我得到這個錯誤:
- 29. 當我朗姆我的應用程序,我得到這個錯誤
- 30. 當我運行程序我得到這個錯誤[ERR] ORA-24344:與編譯錯誤缺少關鍵字