I am getting this error in my code it says to Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
I am confused as to what it is actually asking here is the code in which I am thinking its asking it to be put in just not sure where?
解答:
You can systematically solve this by doing this:
Also, you should share your complete error, so that I can lead you to more specific issue. My thinking is that you have some sort of autoLayout issue in your UICollectionView
.
On the left of your project, click the Break Point navigator
Next click on the plus button on the bottom left and click Add Symbolic BreakPoint
Then you will be shown a popup.
Add
UICollectionViewFlowLayoutBreakForInvalidSizes
in there like soAfter this, just hit enter(on keyboard) and click anywhere
Run your code and see where the project stops
解答: If you give Xcode a path to use for headers, it will check that path when you use an #include
or #import
statement. If the file isn't there, it quits.
If you have the path set as "recursive", Xcode will search folders it finds there if it doesn't find the file.
-
Launch Storyboard not showing image when project builds to device.
I setup a Launch Screen Storyboard which has a logo for my app in .pdf vector. When I build the project image is not visible on device. Simulator works just fine. Tried on a few diffrent devices and the issue persists. Cleaned the whole project, deleted derived data, still an issue.
Image is getting pulled from Asset catalogue. Any ideas?
最近也遇到了同样的问题,不过造成问题的主要原因是工程里有一个LaunchScreen.xib
和 一个LaunchScreen.storyboard
,并且两个文件都勾选了Use as Launch Screen
,但是之前一直没有问题,后来不知道改了什么,开屏页死活加载不出来,然后我就删除LaunchScreen.xib
,重新设置工程的Launch Screen File
,但还是加载不出来,更奇怪的的是在模拟器能正常显示开屏页,到了真机就是不显示。然后看这个问题的解答。貌似还真是 Xcode 的 Bug。
I also find this issue. It's XCode 7.0.1 bug,I also fix it without use images.xcassets.
The image can't show launchScreen.xib from images.xcassets.
1.you can copy the image to xcode project root path.
2.you must rename the image with the different name.