问题标签 [xcode4.5]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
2870 浏览

objective-c - '__bridge' 强制转换在不使用 ARC 时无效

在 Xcode 4.5 中编译旧项目时,会出现警告:

'__bridge' 强制转换在不使用 ARC 时无效

消除此警告的正确方法是什么,以使代码在 ARC 和非 ARC 项目中都能正常工作?

0 投票
2 回答
4111 浏览

ios - XCode 4.5 iOS 5 模拟器:无法打开文档“xxx.xib”。操作无法完成。

我在 iOS 5 模拟器上的 XCode 4.5 中收到此错误。

无法打开文档“xxx.xib”。操作无法完成。文档的两个成员的对象 ID 为 17。这可能是通过外部编辑发生的,例如 SCM 合并操作。

关于如何解决它的任何想法?

谢谢普拉迪普

0 投票
3 回答
3581 浏览

iphone - xcode 4.5 运行 ios 4.0 模拟器(不)

我刚刚升级到 iOS 6 xcode 4.5
但我发现即使在 Xcode-reference-download 中也只有 ios 5,6
我更喜欢我的应用程序也适用于使用 iOS 4.X 的用户

欢迎任何评论。

0 投票
2 回答
6664 浏览

xcode - 适用于 iOS6/Xcode 4.5 的 Facebook SDK 无法正常工作

可能重复:
文件是通用的(3 个切片),但不包含 iOS 上静态库的 (n) armv7s 切片错误,无论如何要绕过?

最近将 Xcode 和我的 iOS 设备升级到各自的最新版本,我现在无法使用 Facebook SDK(版本 3.0.8)为设备构建应用程序 - 在模拟器上构建工作正常。

我在尝试构建时收到的错误:

我注意到在 iOS SDK 登录页面(http://developers.facebook.com/ios/)上,他们有这样一段文字。

升级到 3.0 SDK。在接下来的几周内,我们将添加对 SDK 中备受期待的 iOS 6 集成的支持。

所以..是这样吗?在他们支持 iOS6 之前,我真的无法继续工作数周吗?

我希望有一个快速解决这个问题的方法,当然我不能成为这种情况下唯一的一个。

谢谢你尽你所能的帮助。

0 投票
2 回答
3769 浏览

ios - 为 armv7s 升级到 XCode 4.5 但 XCode 4.5 删除了 armv6 但不能限制要求

我已升级到 XCode 4.5 以添加 armv7s 架构支持,但是,我发现您无法使用 XCode 4.5 生成 armv6 二进制文件。

我已经支持 armv6,但是,想用 XCode 4.5 支持 armv7s 似乎迫使我与以下条款相矛盾:“您只能扩展您的设备要求。不允许提交对二进制文件的更新以限制您的设备要求。

有谁知道我们是否被允许放弃 armv6,或者是否有解决方法?

可能还值得一提的是,我正在构建一个框架(库),而不是一个应用程序。所以我想支持应用程序开发人员。

0 投票
5 回答
1825 浏览

ios - 在新的 iPhone 5 模拟器中,我的 iPhone 应用程序无法使用信箱运行。我如何将它送到信箱?

我刚刚下载了新版本的 Xcode 并运行了我一直在开发的应用程序。出于某种原因,它没有信箱。我想添加信箱效果,直到我为新屏幕准备好应用程序。

谢谢!

0 投票
3 回答
3336 浏览

iphone - Autorotation in iOS6

I am updating my app for iOS 6 and having issues with the changes to autorotation. My app has a bunch of view controllers and all of them should only support the portrait layout except 1 which should support all 3 orientations except upside down.

If I add the application:supportedInterfaceOrientationsForWindow: method to the app delegate do I have to add conditions there to check if im displaying the one VC I want to be able to rotate?

The documentation states that if I implement supportedInterfaceOrientations on a VC it should override the app delegate method but this doesn't appear to be the case. I have an log statement in the method on the child VC and it is called once when the VC loads but its not called when I rotate the device, but the method in the app delegate is.

If I completely remove the method from the app delegate the orientation of my VC's seems to be completely dependent on my apps supported interface orientation settings. This of course seems to be due to the method supportedInterfaceOrientations being called once on creation of the VC but never when the device is rotated.

Does anyone have any ideas or suggestions? It would be much appreciated.

0 投票
2 回答
842 浏览

ios - 在 XCode 4.5 中无法模拟

自从更新到 XCode 4.5 后,我无法在模拟器中打开我的应用程序。

它说“在 iPhone 5.0 模拟器上运行完成”。

有时,在重试两次或三次之后,模拟器终于启动了,但应用程序从未在其中启动。

我对这个新版本的 XCode 感到很生气。

我已经用一个简单的“Hello World”视图开始了一个全新的项目。即使是一个干净的全新项目也无法解决问题。

我真的错过了隐藏在配置中的东西吗?

谢谢

莱昂内尔

编辑 9/21

当我尝试在装有 iOS 5.1 的 iPad 2 上运行时,出现以下错误,可能与上述内容有关:

“选择具有受支持架构的目标,以便在此设备上运行。”

  • 我的项目部署目标是 5.0
  • 我的项目构建设置:有效架构 = armv7 armv7s
  • 我的 Target 部署目标是 5.0
  • 我的目标基础 SDK 是 6.0
  • 我的目标有效架构是:armv7 armv7s

在我的 iPhone 4 上更新到 iOS 6:同样的错误。

0 投票
1 回答
1256 浏览

three20 - armv7s three20 xcode 4.5

我如何three20与新的一起使用xcode 4.5

我收到了这条消息:

0 投票
2 回答
5706 浏览

xcode - 卸载 xcode 4.5 (iOS 6)

刚刚意识到我在更新 xcode 4.5 (iOS 6) 时犯了一个错误,因为它会导致问题。

如何卸载 xcode 4.5 (iOS 6)?安全吗?因为 iOS 6 是测试版。我想回到 xcode 5.1。