问题标签 [ios-9-beta3]

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 投票
0 回答
403 浏览

in-app-purchase - iOS 9 中的应用内购买问题

我在我的应用程序中使用应用程序内购买,它在除 iOS 9 之外的所有 iOS 版本上都可以正常工作。购买显示成功,但在委托功能中没有返回控制权。以下文本正在命令中打印:

HangTracer 间隔为0,强制为1s,同时使用Contact Framework

0 投票
1 回答
2661 浏览

ios - 在 iOS9 中使用“hw.machine”标志调用“sysctlbyname(...)”

在 WWDC 2015 会议“703 隐私和您的应用程序”之后,使用sysctl. 现在,我们将不再能够调用kern.proc,和查看来自任何其他进程的数据,而不是自己的数据kern.procargskern.procargs2这是苹果公司相当合法的隐私强化措施。

谁能确认在 iOS9 中允许调用sysctlbyname(...)withhw.machine来获取确切的设备名称并且不受上述限制的影响?

0 投票
1 回答
631 浏览

ios8 - iOS 9 beta:didReceiveAuthenticationChallenge 方法在 WkWebview 中为每个 Https 站点请求调用,但在 iOS 8 中不调用

我正在使用 WkWebView 开发 iPhone/iPad 浏览器。它在 iOS 8 中运行良好,在 Xcode 6.4 中编译。当我在iOS 9 beta中测试同一个应用程序时,所有https 网站(比如 google.com、Youtube.com)都没有加载

当我调试它时,发现有一个回调到 WKNavigationDelegate - didReceiveAuthenticationChallenge方法。来自挑战保护空间的身份验证方法是NSURLAuthenticationMethodServerTrust,它没有被处理。所以,显然请求被取消并且页面没有加载。

我的问题是,为什么 WkWebview 仅在 iOS 9 beta 中而不是在 iOS 8 中获得 https 站点的身份验证挑战回调

我还在 Xcode 7 beta 6 中编译了源代码并在 iOS 9 beta 设备中运行。我还使用 NSAppTransportSecurity 和 NSAllowArbitaryLoads 将 info.plist 更新为 yes 以允许 http 站点。
但是仍然没有加载 https 站点。这里也报告了相同的回调问题。

iOS 9 beta 中的 WkWebview 中是否有与我的问题相关的更新?

0 投票
5 回答
10701 浏览

user-interface - iOS9 App顶部和底部都有黑条

我的应用程序不使用自动布局,它最初是为 iPhone 4/4s 设计的,从那时起 UI 几乎没有改变。布局是相当小的,所以它没有被认为是优先切换它的自动布局。

以前为 iOS8 构建我的应用程序可以在 iPhone 5 和更新版本上正确缩放,填满屏幕。视图本身会填满整个屏幕,而图标会按比例缩放(这样它们就不会变形)。但是现在看来,使用 iOS9 测试版,该应用程序在顶部和底部都收到黑条,并且它基本上显示为缩放的 iPhone 4 应用程序,导致顶部和底部出现黑条。

基本上我想简单地缩放以适应全屏,就像它在 iOS8 中所做的一样。任何人都可以对导致这些黑条的变化有所了解吗?

我应该补充一点,如果它使用 xcode 7 (ios9 xcode) 构建并使用 iOs8 部署设备,它工作正常,问题是部署到 iOS9 设备。

该应用程序现在在 iOS9 上看起来像这样,红色区域现在是应用程序可用空间,而以前它是整个大小(注意黑条)。

0 投票
3 回答
564 浏览

ios - iOS 9 - App Transport Security 不会加载 XML 文件

我正在将我的应用程序升级到 iOS9。为了支持 ATS,我已将所有网址转移到 https。但是 ATS 在 XML 文件上抛出错误。位于同一位置的 JSON 文件没有问题。

App Transport Security 已阻止明文 HTTP (http://) 资源加载,因为它不安全。可以通过应用程序的 Info.plist 文件配置临时例外。

JSON 网址:https ://www.example.com/content/123.xml

XML 网址:https ://www.example.com/content/123.json

请提出可能是什么问题?先谢谢了。

0 投票
0 回答
652 浏览

ios - 在 iOS 9 beta 5 中使用自定义字体时应用程序崩溃

我的应用程序在支持 iOS 7.1.2 到 iOS 8.4 的应用商店中,并且在 8.4 版本之前都可以正常工作。当我尝试在 iOS 9 beta 5 上运行相同的应用程序时,它崩溃了。它在 iOS 9 beta 4 中运行良好。调试后我发现崩溃是由于我们在应用程序中使用的自定义字体造成的。这是 iOs 9 beta 5 的问题吗?我应该怎么做才能在一周后的 iOS 9.0 主版本上支持我的应用程序。

下面是崩溃的堆栈跟踪

  • 线程 #1: tid = 0x6d68, 0x0000000184d6e1a4 CoreText OTL::GPOS::ApplyPairPos(OTL::LookupSubtable const*, OTL::TGlyphIterator&, OTL::Coverage const&) const + 636, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x3020451cc) frame #0: 0x0000000184d6e1a4 CoreTextOTL::GPOS::ApplyPairPos(OTL::LookupSubtable const*, OTL::TGlyphIterator&, OTL::Coverage const&) const + 636 帧 #1: 0x0000000184d72b14 CoreText OTL::GPOS::ApplyLookupSubtable(OTL::Lookup const&, unsigned int, OTL::LookupSubtable const*, OTL::TGlyphIterator&, OTL::Coverage const&) const + 116 frame #2: 0x0000000184d81690 CoreTextOTL::GPOS: :ApplyLookups(TRunGlue&, int, OTL::GlyphLookups&) const + 544 frame #3: 0x0000000184d80dc0 CoreText TOpenTypePositioningEngine::PositionRuns(SyncState&, KerningStatus&) + 628 frame #4: 0x0000000184cea7b4 CoreTextTKerningEngine::PositionGlyphs(TRunGlue&, ShapingType, AnnexTableFlag) + 188 frame #5: 0x0000000184ce90a4 CoreText CTFontTransformGlyphs + 440 frame #6: 0x000000019504c85c UIFoundation__NSStringDrawingEngine + 8788 frame #7: 0x000000019504a5bc UIFoundation -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:] + 156 frame #8: 0x0000000189731724 UIKit- [UILabel _textRectForBounds:limitedToNumberOfLines:includingShadow:] + 780 帧 #9: 0x000000018973137c UIKit -[UILabel _intrinsicSizeWithinSize:] + 132 frame #10: 0x000000018982c548 UIKit-[UILabel intrinsicContentSize] + 72 帧 #11:0x000000018982c3a8 -[UIView(UIConstraintBasedLayout) _generateContentSizeConstraints] + 48 frame #12: 0x000000018982bdbc UIKitUIKit-[UIView(UIConstraintBasedLayout)_updateContentSizeConstraints]
  • 588 帧 #13: 0x0000000189827e5c UIKit -[UIView(AdditionalLayoutSupport) updateConstraints] + 244 frame #14: 0x000000018982bb60 UIKit-[UILabel updateConstraints] + 220 帧 #15: 0x0000000189f28c8c UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
  • 460 帧 #16: 0x0000000189f28ef4 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
  • 200 帧 #17: 0x0000000189f28bbc UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
  • 252 帧 #18: 0x00000001850b0c00 基础-[NSISEngine withBehaviors:performModifications:] + 168 frame #19: 0x000000018982ab78 UIKit-[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 64 帧 #20: 0x0000000189f28ec8 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingUpdateSecondPassdSecPass:]ed
  • 156 帧 #21: 0x0000000189f28bbc UIKit`-[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
  • 252 帧 #22: 0x0000000189f28ef4 UIKit`-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPassAndViewsNeedingBaselineUpdate:forSecondPass:]
  • 200 frame #23: 0x000000018982ba5c UIKit __60-[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded]_block_invoke + 100 frame #24: 0x00000001850b0c00 Foundation-[NSISEngine withBehaviors:performModifications:] + 168 frame #25: 0x000000018982ab78 UIKit -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 64 frame #26: 0x000000018982b690 UIKit-[UIView(AdditionalLayoutSupport) updateConstraintsIfNeeded] + 244 frame #27: 0x0000000189848094 UIKit -[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded] + 108 frame #28: 0x0000000189f29598 UIKit-[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeeded] + 268 frame #29: 0x0000000189a27808 UIKit -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 176 frame #30: 0x0000000189722640 UIKit-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 688 帧 #31: 0x0000000188f31f14 QuartzCore -[CALayer layoutSublayers] + 148 frame #32: 0x0000000188f2cb20 QuartzCoreCA::Layer::layout_if_needed(CA::Transaction*) + 292 帧 #33: 2:c9000artfzCore:8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32 frame #34: 0x0000000188f2c07c QuartzCore: 8 commit_transaction(CA::Transaction*) + 252 帧 #35: 0x0000000188f2bdd0 QuartzCore CA::Transaction::commit() + 516 frame #36: 0x0000000188f254bc QuartzCoreCA::Transaction::observer_callback(CFRunLoopObserver*, unsigned long, void*) + 80 frame #37: 0x00000001841cc768 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
  • 32 帧 #38: 0x00000001841ca50c CoreFoundation __CFRunLoopDoObservers + 372 frame #39: 0x00000001840f98c0 CoreFoundationCFRunLoopRunSpecific + 416 帧 #40: 0x00000001897931ec UIKit -[UIApplication _run] + 460 frame #41: 0x000000018978e0d4 UIKitUIApplicationMain + 204 * 帧 #42: 0x000000010004eb08 SampleFont main(argc=1, argv=0x000000016fdb7af0) + 124 at main.m:14 frame #43: 0x00000001994ae8b8 libdyld.dylibstart + 4
0 投票
1 回答
2366 浏览

ios - 找不到 -lCloudinary 的库

每当我从pod.

我已经从终端添加了 pod。

错误:

ld:library not found for -lCloudinary

clang:错误:链接器命令失败,退出代码为 1(使用 -v 进行调用)

0 投票
0 回答
48 浏览

parse-platform - 使用新的 iOS 9.3 beta 解析 SDK 问题

自从我开始使用新的 iOS 9.3 beta 更新以来,我一直遇到 Xcode 问题。我正在使用 Parse SDK 来支持我的应用程序,现在它似乎不再响应 iOS 更新并不断给出多个错误消息。

有没有其他人遇到过同样的问题?解决方案是什么?

0 投票
1 回答
871 浏览

ios - requestImageDataForAsset 带有视频 PHAsset 返回带有指向照片的 imageData

iOS9.3beta3,

PHImageManager requestImageDataForAsset 返回指向照片的 imageData,尽管 PHAssert 是在设备上捕获的视频资产。

文档

"requestImageDataForAsset(_:options:resultHandler:)

... 如果版本选项设置为 PHImageRequestOptionsVersionCurrent,Photos 会提供渲染图像数据,包括对资产内容进行的任何编辑的结果。否则,照片会为 资产提供最初捕获的图像数据。”

这是 iOS9.3 中的错误吗?

阿米尔。