Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone:协处理器偏移量超出范围_Iphone_Objective C_Compilation - Fatal编程技术网

iphone:协处理器偏移量超出范围

iphone:协处理器偏移量超出范围,iphone,objective-c,compilation,Iphone,Objective C,Compilation,我对xcode和iphone有一个奇怪的编译问题。我的游戏即将结束,但现在我突然遇到了以下编译错误: {standard input}:6108:co-processor offset out of range gcc-4.2 failed with exit code 1 只有在编译设备的发布版本时才会发生这种情况。模拟器的调试版本和两个版本都可以工作。清理目标和重新编译不起作用。 非常严重的是,只有在向一个特定的源文件中添加一行代码并且仅在这些行之间,才会发生错误: [_sharedDi

我对xcode和iphone有一个奇怪的编译问题。我的游戏即将结束,但现在我突然遇到了以下编译错误:

{standard input}:6108:co-processor offset out of range

gcc-4.2 failed with exit code 1
只有在编译设备的发布版本时才会发生这种情况。模拟器的调试版本和两个版本都可以工作。清理目标和重新编译不起作用。 非常严重的是,只有在向一个特定的源文件中添加一行代码并且仅在这些行之间,才会发生错误:

[_sharedDirector checkAndPutScoreToHighscore:(int)[player score]];
gameOverScreen = YES;
gameOverScreenSlideY = 320.0f;
[buttonManager activateButtonWithID:replayButton];
[buttonManager activateButtonWithID:menuButton];
所以当我在这两行代码之间放一条随机线时,我得到了那个错误。 我不知道是什么导致了这个错误。我打开源代码文件“显示为程序集文件”只是为了好玩,但我不认为这会导致错误。
有什么迹象能告诉我会发生什么事吗?我在网上搜索了3个多小时,这非常令人沮丧。

你很可能发现了一个编译器错误。您真的应该切换到LLVM编译器(clang)。

考虑更好地格式化嵌入代码,这可能会对您有所帮助。