将我的应用程序构建到ipod touch时出错:使用“设备-iPhone OS 3.2"不支持仅将"Targeted Device Family"设置为iPhone("1")进行构建 [英] Error building my app to my ipod touch:building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2

查看:153
本文介绍了将我的应用程序构建到ipod touch时出错:使用“设备-iPhone OS 3.2"不支持仅将"Targeted Device Family"设置为iPhone("1")进行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我完成了我的应用程序的编码,并下载了开发配置文件以及所有这些不错的东西,包括权利等等.但我收到这些警告:

So I finished coding my app, and downloaded the development profile n all that good stuff with the entitlements, etc; but I get these warnings:

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics中,该文件是为i386构建的,该文件不是该体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreData.framework/CoreData中,该文件是为i386构建的,该文件不是体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreData.framework/CoreData, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation中,该文件是为i386构建的,该文件不是体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation中,该文件是为i386构建的,该文件不是体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreLocation.framework/CoreLocation中,该文件是为i386构建的,该体系结构不是该体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreLocation.framework/CoreLocation, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit中,文件是为i386构建的,该体系结构不是该体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/MapKit.framework/MapKit中,该文件是为i386构建的,该体系结构不是该体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/MapKit.framework/MapKit, file was built for i386 which is not the architecture being linked (armv7)

ld:警告:在/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/iAd.framework/iAd中,文件是为i386构建的,该体系结构不是该体系结构链接(armv7)

ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/iAd.framework/iAd, file was built for i386 which is not the architecture being linked (armv7)

以及许多错误,看起来像代码无法识别其自身的语法.我该如何解决? 更新: 看起来像您的项目或目标可能配置错误.请检查您的构建设置,并确认您的Base SDK是iOS设备SDK,而不是iOS Simulator SDK.将架构设置为标准"-mirzapirza 我将iOS设备设置为3.2 sdk,并将构建设置为标准体系结构armv6 armv7. 但是,现在出现了14,00多个错误以及警告:SDK'设备-iPhone OS 3.2不支持将目标设备系列'设置为仅iPhone('1')构建".有什么想法吗?

as well as a whole bunch of errors which seem like the code does not recognize its own syntax. How do i fix this? Update: "Looks like your project or target may be misconfigured. Look at your build settings and verify that your Base SDK is an iOS Device SDK, and not an iOS Simulator SDK. Set your Architectures to Standard" - mirzapirza I set the iOS device to 3.2 sdk and set the build to the standard architecture armv6 armv7. However, now 14,00+ errors along with a "warning: building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2" crops up. any ideas?

推荐答案

所以我最终要做的是创建一个新的xcode项目,然后将所有代码从旧项目复制粘贴到新项目中.现在可以正常工作了.

So What I ended up doing is creating a new xcode project and just copy-pasted all the code from the old project to the new project. Now it works fine.

这篇关于将我的应用程序构建到ipod touch时出错:使用“设备-iPhone OS 3.2"不支持仅将"Targeted Device Family"设置为iPhone("1")进行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆