【发布时间】:2015-09-14 00:24:14
【问题描述】:
当我选择“仅构建活动架构”=“是”时,我可以在我的设备中运行该项目。但是当我选择“否”时,它会显示同一个项目的 200 多个错误。
如果我选择标准架构(armv7、arm64)作为架构,而 arm64、armv7、armv7s 作为此项目的有效架构。
这是我收到的部分错误:
ld: warning: ld: warning: ignoring file /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libbox2d iOS.a, file was built for archive which is not the architecture being linked (armv7): /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libbox2d iOS.aignoring file /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libchipmunk iOS.a, file was built for archive which is not the architecture being linked (armv7): /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libchipmunk iOS.a
ld: warning: ignoring file /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libcocos2dx-extensions iOS.a, file was built for archive which is not the architecture being linked (armv7): /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libcocos2dx-extensions iOS.a
ld: warning: ignoring file /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libCocosDenshion iOS.a, file was built for archive which is not the architecture being linked (armv7): /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libCocosDenshion iOS.a
ld: warning: ignoring file /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libcocos2dx iOS.a, file was built for archive which is not the architecture being linked (armv7): /Users/john/Library/Developer/Xcode/DerivedData/Hero-hbrtqluudvdwemgbwcyacbfeysqv/Build/Products/Debug-iphoneos/libcocos2dx iOS.a
Undefined symbols for architecture armv7:
"cocos2d::Touch::getLocation() const", referenced from:
Credits::onTouchBegan(cocos2d::Touch*, cocos2d::Event*) in Credits.o
Credits::onTouchMoved(cocos2d::Touch*, cocos2d::Event*) in Credits.o
"cocos2d::MoveTo::create(float, cocos2d::Vec2 const&)", referenced from:
Credits::resetCreditAction() in Credits.o
"cocos2d::CallFunc::create(std::__1::function<void ()> const&)", referenced from:
Credits::resetCreditAction() in Credits.o
"cocos2d::Application::setAnimationInterval(double)", referenced from:
vtable for AppDelegate in AppDelegate.o
"cocos2d::Director::runWithScene(cocos2d::Scene*)", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
"cocos2d::Application::~Application()", referenced from:
AppDelegate::~AppDelegate() in AppDelegate.o
"cocos2d::Application::Application()", referenced from:
AppDelegate::AppDelegate() in AppDelegate.o
【问题讨论】: