iPod Touch 2nd 在 xcode4.2 中运行无响应
谷歌搜索了几个小时,我没有得到答案。
我的步骤是:
1 在xcode4.2中创建一个没有ARC的新项目 2 将armv6添加到架构中。它显示:armv6 $(ARCHS_STANDARD_32_BIT) 3 将iOS部署目标更改为iOS4.1 4 检查我的代码签名是否团队配置
单击运行,它显示构建成功,但我的 iPod Touch 2nd (iOS4.2.1) 没有响应,没有错误,没有警告,调试输出窗口中没有任何内容,没有问题...
我认为它是Apple LLVM编译器3.0的问题,所以我将其更改为LLVM GCC 4.2,然后弹出一些错误,我将main.m文件更改为:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
[pool release];
return retVal;
}
然后我修复了AppDelegate.h:
@property (strong, nonatomic) UIWindow *window;
确定
@property (nonatomic,retain) UIWindow *window;
,没有警告,没有错误,没有问题,没有响应... xcode 根本不将文件复制到我的 Touch 2nd!
我用xcode4.1和3.2.5创建的旧项目在Touch 2nd上没有问题,我需要做的就是添加armv6支持,但是xcode 4.2在4ss中确实是一个痛苦!我认为因为它的默认编译器不是 LVMM GCC 4.2 ,所以我在想:
- 如何将我的 xcode4.2 的默认编译器更改为 LLVM GCC 4.2 ?
- 如果我无法更改默认编译器,我应该怎样做才能在 Touch 2nd 上运行它?
任何帮助都会做,谢谢!
Googled for few hours and I got no answers.
There is my steps:
1 create a new project without ARC in xcode4.2
2 add armv6 to a architectures. it shows: armv6 $(ARCHS_STANDARD_32_BIT)
3 change iOS Deployment Target to iOS4.1
4 check my code signing is Team provisioning
Click Run , it shows build success, but my iPod Touch 2nd (iOS4.2.1) has no response, no error , no warning, nothing in debug output window, no issues...
I think it is the problem with Apple LLVM compiler 3.0, so I change it to LLVM GCC 4.2, then some error pops up, I change the main.m file to this:
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
[pool release];
return retVal;
}
And I fix the AppDelegate.h from this:
@property (strong, nonatomic) UIWindow *window;
to
@property (nonatomic,retain) UIWindow *window;
OK, no warning, no error, no issues, no response ... xcode do not copy files to my Touch 2nd at all!
My old projects created by xcode4.1 and 3.2.5 has no problem with Touch 2nd, all I need to do is add a armv6 support, But xcode 4.2 is really a pain in the 4ss! I think that because it's default compiler is not LVMM GCC 4.2 , so I'm thinking:
- How to change my xcode4.2's default compiler to LLVM GCC 4.2?
- If I can't change the default compiler, what should I do to run it on my Touch 2nd?
Any help will do, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要从项目 plist 中删除 armv7 作为要求:(这似乎是在新的 Xcode 项目中默认添加的)
You need to remove armv7 as a requirement from your projects plist:(Which seems to be added by default on new Xcode projects)