nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.99k stars 882 forks source link

Assertion failed: ([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]) #844

Open kingwap99 opened 5 years ago

kingwap99 commented 5 years ago

Hi I just download the updated develop branch and using xcode 10.2.1 carthage update --no-use-binaries --platform iOS

after built successful, when loading the app into iphone, it crashed on here

/nextCloud/ios/iOSClient/Utility/CCUtility.m, line 628. assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);

2019-04-19 16:02:37.296191+0800 Nextcloud[28635:22543908] [LOG] ------------------------------------- Assertion failed: ([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]), function +[CCUtility addSkipBackupAttributeToItemAtURL:], file

Expected behaviour

Actual behaviour

Steps to reproduce

iOS version

App version

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

orestys commented 5 years ago

Are there any updates on this? Having the same issue

MDevG commented 5 years ago

Same issue here. Source code posted yields:

Assertion failed: ([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]), function +[CCUtility addSkipBackupAttributeToItemAtURL:], file ../CCUtility.m, line 628.

Any solutions?

orestys commented 5 years ago

I`ve made things work in this way: Just update the capabilitiesGroups variable in Brand/NCBrand.swift file to the correct value from Capabilities/App Groups section and do a clean build.

MDevG commented 5 years ago

Thanks! Also, for some reason, in my case the "Nextcloud" target did not have its group assigned under Capabilities (App Groups was turned off).

Issue fixed.