When (unit)test run(press diamond play shape) after build finish
Testing... show on the top status bar(left) in X-code.
but It is not change status. show continue the Testing... and memory increase continue and simulator(emulator?) show white blank screen.
Even like below test code. It is not xcode problem. If I create new Project and run test, It works well.
I don't know how to configure my project.
If I run this code my Project It also not work well.
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
debugPrint("hello")
}
Post
Replies
Boosts
Views
Activity
I tried
safe-mode,
move com.apple.Terminal.plist to Trash And
control + shift + enter + turn-off keyboard (like reset? or remove caching?) (it may not exactly right I just wrote from my memory)
but also happened like image.
When this happend, mac does not work at 'shut-down' or 'force-quit'.
When do it, just background window show and not turn off... so I am just pressing mac-power-switch on the back about 5 seconds? to turn off computer.
What should I do?
Is there any solution or other trial?
I didn't tried only format(reset mac os??), I think it is the last way...time consuming, if possible I don't want to try.
In the Image
There is many info and memory-addresses that I don't aware of, If its safe, I'll show all info.
Details on below
stacktrace on bottom
xcode / ios
16.5
17.0
15.4
14.2
ok
ok
ok
14.3.1
error
error
ok
15.0(beta)
error
error
ok
==================
this bug happened when (left-right)swipe collectionView
I use reloadSection() for different cell count or size in some section.
this error happens below code
UIView.performWithoutAnimation {
collectionView.reloadSections(IndexSet.init(integer: section.rawValue))
}
I couldn't find any way to fix this problem. In my mind, it is right logic related collectionView but not exactly sure.
Question
If the problem is on my code, what can I try?.
I searched on google, asked ai-propt(openai, bing,bard) but these not helped
If the bug source is from Xcode or swift (or UIKit?)?
just wait?
Now, Xcode 14.2 is fine on any situation. is it safe to code on this version and upload appstroe? and even this ok, should I fix this bug from my code?
stacktrace
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid batch updates detected: the number of sections and/or items returned by the data source before and/or after performing the batch updates are inconsistent with the updates.Data source before updates = { 9 sections with item counts: [1, 1, 1, 0, 1, 0, 1, 1, 0] }Data source after updates = { 9 sections with item counts: [1, 0, 1, 0, 1, 0, 1, 1, 0] }Updates = [ Delete section 4, Insert section 4]Collection view: <UICollectionView: 0x105130000; frame = (0 74; 375 634); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x282dd60a0>; backgroundColor = <UIDynamicSystemColor: 0x283788b80; name = systemBackgroundColor>; layer = <CALayer: 0x2823724a0>; contentOffset: {0, -8}; contentSize: {375, 951.32993055555562}; adjustedContentInset: {8, 0, 60, 0}; layout: <UICollectionViewFlowLayout: 0x103ff0020>; dataSource: <Formation.MarketViewCell: 0x105047a00; baseClass = UICollectionViewCell; frame = (1125 -17; 375 768); clipsToBounds = YES; hidden = YES; backgroundColor = UIExtendedSRGBColorSpace 0.941176 0.956863 0.972549 1; layer = <CALayer: 0x282395ec0>>>'***