xcode 6.X arm64代码构建失败,没有任何编译或链接错误
xcode 6.x arm64 code build failed without any compile or link error
我刚刚为我的项目启用了arm64支持。以下是构建设置(仅在项目启动后加粗/修改):
> Architectures:
Architectures: Standard Architectures (armv7, arm64) - $(ARCHS_STANDARD)
Base SDK: Latest iOS (iOS 8.3)
Build Active Architecture Only: NO
Supported Platforms: iOS
Valid Architectures: armv7 armv7s arm64
> Build Options
Validate Built Product: Yes
> Deployment
Strip Debug Symbols: Druing Copy: No
> Linking
Other Linker Flags: -lxml2 -lz -ObjC
> Packaging
Compress PNG Files: No
Info.plist File: <project_name>/Info.plist
Wrapper Extension: app
> Apple LLVM 6.1 - Code Generation
Generate Position-Dependent Code: No
Optimization Level: None [-O0]
> Apple LLVM 6.1 - Language
Precompile Prefix Header: Yes
Prefix Header: <project_name>/Prefix.pch
> Apple LLVM 6.1 - Preprocessing
Preprocessor Macros:
Debug: DEBUG COCOS2D_DEBUG=1 CC_TARGET_OS_IPHONE USE_FILE32API APP_TARGET=1 CC_ENABLE_CHIPMUNK_INTEGRATION
Distribution: NDEBUG USE_FILE32API CC_TARGET_OS_IPHONE APP_TARGET=1 CC_ENABLE_CHIPMUNK_INTEGRATION
Release: NDEBUG USE_FILE32API CC_TARGET_OS_IPHONE APP_TARGET=1 CC_ENABLE_CHIPMUNK_INTEGRATION
> Interface Builder NIB Postprocessor - Options
Strip NIB Files: No
我的项目是使用cocos2dx 2.2.6,与Chartboost, Apsalar, Flurry, Tapjoy和Fyber(赞助商支付)。我还检查了我的静态库(.a)文件是否支持64位,使用:
xcrun -sdk iphoneos lipo -info ./<project_path>/libs/cocos2dx/platform/third_party/ios/libraries/libwebp.a
Architectures in the fat file: ./<project_path>/libs/cocos2dx/platform/third_party/ios/libraries/libwebp.a are: i386 armv7 armv7s x86_64 arm64
我所有的静态库(a)文件都显示arm64,这意味着它们支持64位构建和打包。
现在,当我尝试构建我的代码(无论是模拟器/设备),xcode显示构建失败后,编译/构建我的文件。我没有在左窗格的错误/警告部分的链接/编译时错误。虽然它显示了一些代码警告,但在启用arm64支持之前,代码中的警告就已经存在了。
多亏了我的朋友,我终于看到了错误。这是XCode中的一些bug。我执行了以下步骤:
- 设置仅构建活动架构:是
- 连接arm64架构和操作系统的设备(iPhone 6 plus)
- 清洁,构建 现在错误将显示给你
- 修复错误(尽管在我的观察中这些错误在32位构建之前不存在)
- 当你修复了所有的错误设置Build Active Architecture Only: No
- 清洁,构建
- 就是这样。完成了
相关文章:
- 这是使用回溯的 nqueen 问题,但我使用了动态 2d 数组,我的程序编译良好,但不返回任何输出
- 代码编译没有任何输出,入门程序
- 如何用 C 编译,但如果使用任何C++,则会抛出错误?
- 检查该类在编译时C++中是否有任何基类
- std::任何只用于移动的模板,其中副本ctor内的static_assert等于编译错误,但为什么
- 编译时检查以确保结构中的任何位置都没有填充
- 为什么<<低;和 cout<<v.begin;单独给出错误,但 cout <<(lower.begin());没有给出任何错误,并使代码易于编译
- 使用 Cmake 编译 LZO 时,它注意到找不到任何 VS 实例
- STXXL的任何STXXL替代方案都可以在编译时处理未知大小或任何技巧
- 编译 .cu 与 .cpp:即使没有任何 CUDA 代码,编译器也会出错
- C3881在Visual Studio中,而它在g++中编译没有任何问题
- 无法编译任何C++程序;错误:未知类型名称'uint8_t'
- 是否有任何挂钩接口在编译时间内更换功能
- 是否有任何类型安全的、编译时检查的 printf 的实现
- 我无法使用代码::块编译任何东西
- 在新的Visual Studio项目中包含任何Eigen 3.3.1文件将无法编译
- 如何设计可序列化类以使任何非序列化属性都会导致编译时错误
- GNU 4.8.1系统更新后,任何C++编译都会崩溃
- 我没有任何编译错误,但我的代码不起作用。怎么了?
- xcode 6.X arm64代码构建失败,没有任何编译或链接错误