花了一些时间谷歌搜索后,有些东西告诉我这个问题是新的.
我们有一个支持iOS7-8的全功能项目.当然,它已多次成功提交给AppStore.
我们使用pod,大量跟踪和监控,如GA和Instabug.
现在我们决定将iOS 9上的Xcode 7上构建的应用程序版本提交给TestFlight.
我们禁用了bitcode,因为许多pod,如Flurry和其他预构建的库都没有包含它.
构建成功,在提交到iTunesConnect之后我们得到了这个:
我们对GoogleAppIndexing库(在pod中也是如此)也是如此,但我们删除了它,只是为了让它工作.现在 - Instabug.它太过分了,所以我试图了解iOS 9中发生的事情,以及使一个完全正常工作的项目开始抛出这些错误的变化是什么.
欢迎任何想法和想法!请分享您的经验,如果我错过了什么,我会很乐意分享我的步骤.
2015-08-18 16:07:51.523示例[16070:269647]未定义UICollectionViewFlowLayout的行为,因为:2015-08-18 16:07:51.523
示例[16070:269647]项目宽度必须小于UICollectionView的宽度减去左边和右边的值,减去左边和右边的内容值.
2015-08-18 16:07:51.524示例[16070:269647]相关的UICollectionViewFlowLayout实例是,并附加到; 动画= {position =; bounds.origin =; bounds.size =; }; layer =; contentOffset:{0,0}; contentSize:{1024,770}>集合视图布局:.2015-08-18 16:07:51.524示例[16070:269647]在UICollectionViewFlowLayoutBreakForInvalidSizes上创建一个符号断点,以便在调试器中捕获它.
这就是我得到的,我所做的是
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
return CGSizeMake(self.collectionView!.frame.size.width - 20, 66)
}
Run Code Online (Sandbox Code Playgroud)
当我从横向旋转到纵向时,控制台仅在iOS 9中显示此错误消息,是否有人知道这是怎么回事?如果有解决方法?
uicollectionview uicollectionviewcell uicollectionviewlayout ios9 xcode7-beta5
从Xcode Beta 5在iOS 8上运行测试时出现此错误:
dyld: Symbol not found: _kAXXCAttributeAbsoluteValue
Referenced from: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AXRuntime.framework/AXRuntime
in /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
Run Code Online (Sandbox Code Playgroud)
其他人看到这个?
我不知道为什么组件部分什么都没有.
我再次移除并重新安装,但它根本不起作用.有谁知道如何解决这个问题?
当我第一次启动Xcode 7 beta 5时,我在那个部分看到了iOS模拟器,但突然间它们消失了,再也没有出现过.
当使用Xcode 7b5构建包含Today Extension的应用程序时,我无法创建有效的存档.当我进行存档时,构建成功,然后在管理器中它显示在"其他项目"下而不是"iOS应用程序"下.
如果我关闭项目并在Xcode 6.3.2中打开相同的项目,当我进行存档时,它会显示在"iOS Apps"下.
我比较了档案,我注意到的一件事是我的今日小工具被放置在Applications目录之外.对于Xcode 6.3.2和Xcode 7b5,结构如下所示:
Xcode 6.3.2
| -Archive
| - 产品
| ---应用程序
| ---- MyMainApp.app
Xcode 7 Beta 5
| -Archive
| - 产品
| ---应用程序
| ---- MyMainApp.app
| --- MyTodayWidget.appex
我认为问题是MyTodayWidget打包在Applications目录之外和.app之外.我不确定为什么Xcode 7 beta 5会以不同于Xcode 6.3.2的方式打包应用程序,而我没有做任何更改.
更新2015年8月14日:这似乎是CocoaPods和Extensions的一个问题,如WatchKit或Today扩展.据报道,在Xcode 7 beta 5(带有watchkit扩展名)#4021中使用"Archive"时,其他开发人员生成了无效存档.这似乎是这个问题的根本原因.
环境:
- Xcode 7 Beta 5
- 今日扩展
- 普通应用程序
- CocoaPods 0.38.2(截至9/22的最新发布版本)
- AFNetworking用于扩展和应用程序
它发生在新的Xcode7 beta中:
CompileAssetCatalog /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Products/Debug-iphoneos/InstaAd.app InstaAd/Images.xcassets
cd /Users/admin/Documents/git/InstaAdIOS/InstaAd
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Intermediates/InstaAd.build/Debug-iphoneos/InstaAd.build/assetcatalog_dependencies.txt --output-partial-info-plist /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Intermediates/InstaAd.build/Debug-iphoneos/InstaAd.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --filter-for-device-model iPhone7,2 --filter-for-device-os-version 8.4 --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphoneos --compile /Users/admin/Library/Developer/Xcode/DerivedData/InstaAd-ddgdnbxlpxipirebpndfmgrxspel/Build/Products/Debug-iphoneos/InstaAd.app /Users/admin/Documents/git/InstaAdIOS/InstaAd/InstaAd/Images.xcassets
2015-08-10 14:25:53.366 IBCocoaTouchImageCatalogTool[1054:10336] CoreUI(DEBUG): CSIGenerator using 'LZVN' Compression coreui version (358.000000)
2015-08-10 14:25:56.449 ibtoold[675:6100] An uncaught exception was raised
2015-08-10 14:25:56.450 ibtoold[675:6100] The agent crashed
Application Specific Information:
CoreSimulator 179 - Device: IBSimDeviceTypeiPad1x - Runtime: iOS 9.0 (13A4325c) - DeviceType: …
Run Code Online (Sandbox Code Playgroud) 当我使用xcode 7 beta 5并想在手表模拟器上运行一个简单的演示.它会提示"将安装带有坏包标识符的监视应用程序'(null)'".我找不到任何地方.有谁知道这个?
在iOS 8.4,模拟器和手机中,我的performSegue调用没有遇到任何问题,但是当在Xcode 7 beta 5上使用模拟器时,当执行performSegue调用时,它会崩溃.调用堆栈如下.
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM insertObject:atIndex:]: index 3 beyond bounds [0 .. 1]'
*** First throw call stack:
(
0 CoreFoundation 0x00000001137509b5 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001131c8deb objc_exception_throw + 48
2 CoreFoundation 0x00000001136179d5 -[__NSArrayM insertObject:atIndex:] + 901
3 Foundation 0x0000000110c42aa1 -[NSKeyValueSlowMutableArray insertObject:atIndex:] + 106
4 CoreFoundation 0x000000011366beb2 -[NSMutableArray insertObjects:count:atIndex:] + 162
5 CoreFoundation 0x000000011366bc1f -[NSMutableArray insertObjectsFromArray:range:atIndex:] + 335
6 CoreFoundation 0x000000011366baa3 -[NSMutableArray addObjectsFromArray:] + 723
7 UIKit 0x00000001119ef467 …
Run Code Online (Sandbox Code Playgroud) 看起来在升级到xcode 7 beta 5和iOS 9.0 beta 5之后,我无法创建包含armv7s切片的静态库.
lipo -info staticLibraryName说:
Architectures in the fat file: staticLibraryName are: armv7 i386 x86_64 arm6.
Run Code Online (Sandbox Code Playgroud)
添加armv7s以构建设置以及$(ARCHS_STANDARD)并将Build Active Architectures Only设置为No似乎没有像在xcode 6中那样做.
还有其他人得到这个吗?有没有什么方法可以生产armv7s切片?如果我发布没有切片的静态库,我的客户\他们的最终用户会受到影响吗?
我试图将a分配UICollectionViewFlowLayout
给a UICollectionView
并且它在物理设备上运行正常,但模拟器中断了一个信号:
EXC_ARITHMETIC(代码= EXC_i386_DIV,子代码= 0x0)
这只发生在一个模拟器上,我的理解是这通常是0分错误,但我不知道这对我的实现有多大可能
码:
let flowLayout: UICollectionViewFlowLayout = UICollectionViewFlowLayout()
flowLayout.itemSize = CGSizeMake(self.view.bounds.width * 0.67,
self.collectionView!.frame.height - 10)
flowLayout.scrollDirection = UICollectionViewScrollDirection.Horizontal
self.collectionView!.collectionViewLayout = flowLayout
Run Code Online (Sandbox Code Playgroud)
此外,我得到了这一行的信号: self.collectionView!.collectionViewLayout = flowLayout
并且视图边界是:宽度:277.38高度:75.0
任何帮助或替代品将不胜感激!