简体   繁体   English

在iPod上使用route-me奇怪的EXC_BAD_INSTRUCTION

[英]Strange EXC_BAD_INSTRUCTION using route-me on iPod

I'm getting some really strange EXC_BAD_INSTRUCTION only on iPod Touches using route-me. 我仅在使用route-me的iPod Touch上得到了一些非常奇怪的EXC_BAD_INSTRUCTION。 route-me is a library that's in my project. route-me是我项目中的一个库。

Here are the details. 这是详细信息。 I'm initWithFrame a Mapview. 我是一个Mapview initWithFrame。

mapView = [[RMMapView alloc] initWithFrame:CGRectMake(0, 0, width, height)];

I get an EXC_BAD_INSTRUCTION inside initWithFrame for RMMapView: 我在initWithFrame的RMMapView中得到一个EXC_BAD_INSTRUCTION:

- (id)initWithFrame:(CGRect)frame
{ //DEBUGGER STOPS HERE FOR SOME REASON
    LogMethod();
    if (self = [super initWithFrame:frame]) {
        [self performInitialSetup];
    }
    return self;
}

The debugger just stops on the first {. 调试器仅在第一个{处停止。 What's even more strange is that when I view the contents of "frame" instead of being 0,0 for x,and y they are: x = 4.65449901e-10 and y = 3.5698779e-40. 更奇怪的是,当我查看“框架”的内容而不是x和y为0时,它们分别是:x = 4.65449901e-10和y = 3.5698779e-40。

What is going on here? 这里发生了什么? This works fine on any other device. 在其他任何设备上都可以正常工作。

Anyone have any ideas what could be going on here? 任何人都有什么想法在这里发生什么? I have a feeling it's some project setting that's causing me this. 我觉得这是某些项目设置导致的。 I don't see how the code can be an issue here. 我在这里看不到代码如何成为问题。

thanks! 谢谢!

I figured it out. 我想到了。 Hopefully this is helpful to others: 希望这对其他人有帮助:

As I suspected the route-me project settings were incorrect. 我怀疑我的路线项目设置不正确。 First I had to change the project to use the same iOS SDK as my main project. 首先,我必须更改项目以使用与主项目相同的iOS SDK。 I also had to tell it to build ARM6 ARM7 (Standard). 我还必须告诉它构建ARM6 ARM7(标准)。 It was building only ARM7 (Optimized). 它仅构建ARM7(已优化)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM