Alfresco / alfresco-ios-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlfrescoFileManager Unable to create folder at path

epm157 opened this issue · comments

While I am trying to download a file or open "Local Files" from main menu in Xcode simulator I get following error:

2015-10-05 12:12:43.600 AlfrescoApp[11076:92698] DEBUG [AlfrescoFileManager(Extensions) createFolderAtPathIfItDoesNotExist:] Unable to create folder at path: (null). Error: The file couldn’t be saved.
2015-10-05 12:12:43.636 AlfrescoApp[11076:92698] DEBUG [AlfrescoFileManager(Extensions) createFolderAtPathIfItDoesNotExist:] Unable to create folder at path: (null). Error: The file couldn’t be saved.
2015-10-05 12:12:43.641 AlfrescoApp[11076:92698] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSFileManager copyItemAtPath:toPath:error:]: destination path is nil'
*** First throw call stack:
(
0 CoreFoundation 0x0000000111194f65 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000011058ddeb objc_exception_throw + 48
2 CoreFoundation 0x0000000111194e9d +[NSException raise:format:] + 205
3 Foundation 0x000000010e7f1c5a -[NSFileManager copyItemAtPath:toPath:error:] + 199
4 AlfrescoApp 0x000000010d91599f -[AlfrescoProtectionAwareFileManager copyItemAtPath:toPath:error:] + 143
5 AlfrescoApp 0x000000010d93ba45 -[DownloadManager copyDocumentFrom:destinationFilename:overwriteExisting:error:] + 549
6 AlfrescoApp 0x000000010d93ad76 -[DownloadManager copyToDownloadsFolder:documentName:contentPath:overwriteExisting:error:] + 502
7 AlfrescoApp 0x000000010d937e21 -[DownloadManager saveDocument:documentName:contentPath:suppressAlerts:completionBlock:] + 705
8 AlfrescoApp 0x000000010d937a08 -[DownloadManager saveDocument:contentPath:suppressAlerts:completionBlock:] + 184
9 AlfrescoApp 0x000000010d937907 -[DownloadManager saveDocument:contentPath:completionBlock:] + 135
10 AlfrescoApp 0x000000010d9377fc -[DownloadManager downloadDocument:contentPath:session:completionBlock:] + 524
11 AlfrescoApp 0x000000010da1dae5 -[ActionViewHandler pressedDownloadActionItem:] + 1125
12 AlfrescoApp 0x000000010da15ff4 -[DocumentPreviewViewController didPressActionItem:cell:inView:] + 1268
13 AlfrescoApp 0x000000010d8ffe33 -[ActionCollectionView collectionView:didSelectItemAtIndexPath:] + 259
14 UIKit 0x000000010f91ceb0 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:] + 701
15 UIKit 0x000000010f93dd51 -[UICollectionView touchesEnded:withEvent:] + 574
16 UIKit 0x000000010f313663 forwardTouchMethod + 349
17 UIKit 0x000000010f31372c -[UIResponder touchesEnded:withEvent:] + 49
18 UIKit 0x000000010f313663 forwardTouchMethod + 349
19 UIKit 0x000000010f31372c -[UIResponder touchesEnded:withEvent:] + 49
20 UIKit 0x000000010f182aa3 -[UIWindow _sendTouchesForEvent:] + 835
21 UIKit 0x000000010f183691 -[UIWindow sendEvent:] + 865
22 UIKit 0x000000010f135752 -[UIApplication sendEvent:] + 263
23 UIKit 0x000000010f110fcc _UIApplicationHandleEventQueue + 6693
24 CoreFoundation 0x00000001110c10a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17
25 CoreFoundation 0x00000001110b6fcc __CFRunLoopDoSources0 + 556
26 CoreFoundation 0x00000001110b6483 __CFRunLoopRun + 867
27 CoreFoundation 0x00000001110b5e98 CFRunLoopRunSpecific + 488
28 GraphicsServices 0x0000000113f26ad2 GSEventRunModal + 161
29 UIKit 0x000000010f116676 UIApplicationMain + 171
30 AlfrescoApp 0x000000010d909caf main + 111
31 libdyld.dylib 0x000000011251492d start + 1
32 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

2015-10-05 14:28:42.559 AlfrescoApp[5533:30233] ERROR [AppDelegate application:didFinishLaunchingWithOptions:] CLOUD_OAUTH_KEY must have non-zero length
2015-10-05 14:28:42.562 AlfrescoApp[5533:30233] ERROR [AppDelegate application:didFinishLaunchingWithOptions:] CLOUD_OAUTH_SECRET must have non-zero length
2015-10-05 14:28:42.628 AlfrescoApp[5533:30233] DEBUG [AccountManager loadAccountsFromKeychain] Error in retrieving saved accounts. Error: The operation couldn’t be completed. (Error retrieving accounts error -25300.)
2015-10-05 14:28:42.631 AlfrescoApp[5533:30233] DEBUG [AccountManager removeAllAccounts] Error deleting all accounts from the keychain. Error: The operation couldn’t be completed. (Error deleting accounts error -25300.)
2015-10-05 14:28:42.767 AlfrescoApp[5533:30233] DEBUG [AlfrescoClientBasedConfigService initializeInternalStateWithCompletionBlock:] Attempting to load bundle from /Users/epmo/Library/Developer/CoreSimulator/Devices/CD47B0F1-332A-447E-B04C-8CA7AEE013EA/data/Containers/Data/Application/FCF982B4-26F4-42D3-87B2-465A37F8FA98/Documents/Configuration/configuration.bundle
2015-10-05 14:28:42.771 AlfrescoApp[5533:30233] DEBUG [AlfrescoClientBasedConfigService initializeInternalStateWithCompletionBlock:] Attempting to read configuration from /Users/epmo/Library/Developer/CoreSimulator/Devices/CD47B0F1-332A-447E-B04C-8CA7AEE013EA/data/Containers/Data/Application/FCF982B4-26F4-42D3-87B2-465A37F8FA98/Documents/Configuration/configuration.json
2015-10-05 14:28:42.807 AlfrescoApp[5533:30909] DEBUG [AlfrescoClientBasedConfigService parseEvaluators:] Stored config for evaluator with id: isAlfrescoV42
2015-10-05 14:28:42.808 AlfrescoApp[5533:30909] WARN [AlfrescoClientBasedConfigService parseEvaluators:] Unrecognised evaluator type: org.alfresco.client.evaluator.hasRepositoryCapability
2015-10-05 14:28:42.809 AlfrescoApp[5533:30909] WARN [AlfrescoClientBasedConfigService parseEvaluators:] Unrecognised evaluator type: org.alfresco.client.evaluator.hasRepositoryCapability
2015-10-05 14:28:42.810 AlfrescoApp[5533:30909] WARN [AlfrescoClientBasedConfigService parseEvaluators:] Unrecognised evaluator type: org.alfresco.client.evaluator.hasRepositoryCapability
2015-10-05 14:28:42.810 AlfrescoApp[5533:30909] WARN [AlfrescoClientBasedConfigService parseEvaluators:] Unrecognised evaluator type: org.alfresco.client.evaluator.hasAspect
2015-10-05 14:28:42.811 AlfrescoApp[5533:30909] WARN [AlfrescoClientBasedConfigService parseEvaluators:] Unrecognised evaluator type: org.alfresco.client.evaluator.hasAspect
2015-10-05 14:28:42.820 AlfrescoApp[5533:30909] DEBUG [AlfrescoProfileConfigHelper parse] Stored config for profile with id: default
2015-10-05 14:28:42.822 AlfrescoApp[5533:30909] DEBUG [AlfrescoCreationConfigHelper typeCreationDataFromJSON:] Stored config data for type creation with id: application/vnd.openxmlformats-officedocument.wordprocessingml.document
2015-10-05 14:28:42.823 AlfrescoApp[5533:30909] DEBUG [AlfrescoCreationConfigHelper typeCreationDataFromJSON:] Stored config data for type creation with id: application/vnd.openxmlformats-officedocument.presentationml.presentation
2015-10-05 14:28:42.824 AlfrescoApp[5533:30909] DEBUG [AlfrescoCreationConfigHelper typeCreationDataFromJSON:] Stored config data for type creation with id: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
2015-10-05 14:28:42.825 AlfrescoApp[5533:30909] DEBUG [AlfrescoCreationConfigHelper typeCreationDataFromJSON:] Stored config data for type creation with id: text/plain
2015-10-05 14:28:42.847 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-repository-userhome-default
2015-10-05 14:28:42.848 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-activities-default
2015-10-05 14:28:42.849 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-search-default
2015-10-05 14:28:42.850 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-local-default
2015-10-05 14:28:42.851 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-task-default
2015-10-05 14:28:42.852 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-repository-default
2015-10-05 14:28:42.853 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-repository-shared-default
2015-10-05 14:28:42.854 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-sites-default
2015-10-05 14:28:42.855 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViews:] Stored config for view with id: view-favorite-default
2015-10-05 14:28:42.857 AlfrescoApp[5533:30909] DEBUG [AlfrescoViewConfigHelper parseViewGroups:] Stored config data for view group with id: views-menu-default
2015-10-05 14:28:42.858 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:sampleType
2015-10-05 14:28:42.859 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:sampleRate
2015-10-05 14:28:42.860 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:genre
2015-10-05 14:28:42.861 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:pixelYDimension
2015-10-05 14:28:42.863 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:description
2015-10-05 14:28:42.864 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:contributor
2015-10-05 14:28:42.865 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:album
2015-10-05 14:28:42.866 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: path
2015-10-05 14:28:42.867 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:xResolution
2015-10-05 14:28:42.868 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:compressor
2015-10-05 14:28:42.869 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:dateTimeOriginal
2015-10-05 14:28:42.870 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:releaseDate
2015-10-05 14:28:42.871 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: mimetype
2015-10-05 14:28:42.872 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:coverage
2015-10-05 14:28:42.873 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:composer
2015-10-05 14:28:42.874 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: path_document
2015-10-05 14:28:42.875 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:type
2015-10-05 14:28:42.875 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:dcsource
2015-10-05 14:28:42.876 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:rights
2015-10-05 14:28:42.877 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:engineer
2015-10-05 14:28:42.878 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:pixelXDimension
2015-10-05 14:28:42.879 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:name
2015-10-05 14:28:42.880 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:fNumber
2015-10-05 14:28:42.881 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:flash
2015-10-05 14:28:42.882 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:manufacturer
2015-10-05 14:28:42.883 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:model
2015-10-05 14:28:42.884 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:artist
2015-10-05 14:28:42.885 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: size
2015-10-05 14:28:42.886 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:created
2015-10-05 14:28:42.887 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:subject
2015-10-05 14:28:42.888 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:modified
2015-10-05 14:28:42.889 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:software
2015-10-05 14:28:42.890 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:modifier
2015-10-05 14:28:42.891 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:publisher
2015-10-05 14:28:42.892 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:identifier
2015-10-05 14:28:42.893 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:author
2015-10-05 14:28:42.902 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:exposureTime
2015-10-05 14:28:42.903 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:trackNumber
2015-10-05 14:28:42.905 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:orientation
2015-10-05 14:28:42.906 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:isoSpeedRatings
2015-10-05 14:28:42.907 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:resolutionUnit
2015-10-05 14:28:42.908 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:title
2015-10-05 14:28:42.909 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: cm:creator
2015-10-05 14:28:42.910 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:focalLength
2015-10-05 14:28:42.911 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: audio:channelType
2015-10-05 14:28:42.912 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFields:] Stored config for field with id: exif:yResolution
2015-10-05 14:28:42.914 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: aspect:exif:exif
2015-10-05 14:28:42.915 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: aspect:cm:taggable
2015-10-05 14:28:42.915 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: cm:content
2015-10-05 14:28:42.916 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: type:cm:folder
2015-10-05 14:28:42.917 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: type:cm:content
2015-10-05 14:28:42.918 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: aspect:cm:dublincore
2015-10-05 14:28:42.919 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: aspect:cm:geographic
2015-10-05 14:28:42.920 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseFieldGroups:] Stored config data for field group with id: aspect:audio:audio
2015-10-05 14:28:42.921 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseForms:] Stored config data for form with id: view-properties
2015-10-05 14:28:42.922 AlfrescoApp[5533:30909] DEBUG [AlfrescoFormConfigHelper parseForms:] Stored config data for form with id: edit-properties
2015-10-05 14:28:43.162 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:28:59.655 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:28:59.662 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:00.112 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/server
2015-10-05 14:30:00.851 AlfrescoApp[5533:30233] DEBUG [AlfrescoRepositorySession authenticateWithUsername:andPassword:completionBlock:] Retrieving repositories using: https://server.com:443/alfresco/cmisatom
2015-10-05 14:30:01.063 AlfrescoApp[5533:30233] DEBUG [AlfrescoRepositorySession establishAlfrescoSessionWithSessionParameters:repositories:completionBlock:] Connecting to repository with id: 728260b1-d60d-49eb-9726-e4e983673ea8
2015-10-05 14:30:01.437 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/workflow-definitions
2015-10-05 14:30:01.603 AlfrescoApp[5533:30233] DEBUG [AlfrescoRepositorySession establishAlfrescoSessionWithSessionParameters:repositories:completionBlock:] Session established for user name@mailserver.com, repo version: 4.2.0 (4576) Community Edition
2015-10-05 14:30:01.605 AlfrescoApp[5533:30233] INFO [AlfrescoRepositorySession establishAlfrescoSessionWithSessionParameters:repositories:completionBlock:] Using Alfresco SDK v1.4.1-dev and ObjectiveCMIS v0.5
2015-10-05 14:30:01.610 AlfrescoApp[5533:30233] DEBUG [AlfrescoViewConfigHelper viewGroupConfigForIdentifier:scope:] Returning view group config for identifier 'views-menu-default': <AlfrescoViewGroupConfig: 0x7f93b14f7600>
2015-10-05 14:30:01.613 AlfrescoApp[5533:30233] DEBUG [MainMenuConfigurationBuilder sectionsForContentGroupWithCompletionBlock:] ViewGroupConfig: views-menu-default
2015-10-05 14:30:01.618 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Created new FavoritesCache object
2015-10-05 14:30:01.625 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Created new SiteCache object
2015-10-05 14:30:01.630 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.635 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.641 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.646 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.666 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.671 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.678 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.699 AlfrescoApp[5533:30233] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2015-10-05 14:30:01.699 AlfrescoApp[5533:30233] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2015-10-05 14:30:01.731 AlfrescoApp[5533:30233] DEBUG [AlfrescoViewConfigHelper viewGroupConfigForIdentifier:scope:] Returning view group config for identifier 'views-menu-default': <AlfrescoViewGroupConfig: 0x7f93b3aa6040>
2015-10-05 14:30:01.735 AlfrescoApp[5533:30233] DEBUG [MainMenuConfigurationBuilder sectionsForContentGroupWithCompletionBlock:] ViewGroupConfig: views-menu-default
2015-10-05 14:30:01.739 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.744 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.748 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.752 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.756 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.760 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.769 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.773 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.778 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.783 AlfrescoApp[5533:30233] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2015-10-05 14:30:01.784 AlfrescoApp[5533:30233] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
2015-10-05 14:30:01.795 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/people/name@mailserver.com
2015-10-05 14:30:01.896 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.901 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.902 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:01.905 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:01.908 AlfrescoApp[5533:30233] DEBUG [AlfrescoSiteCache buildCacheWithDelegate:completionBlock:] Building site cache
2015-10-05 14:30:01.912 AlfrescoApp[5533:30233] DEBUG [AlfrescoSiteCache internalBuildCacheWithDelegate:completionBlock:] Requesting member site data from delegate
2015-10-05 14:30:01.916 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https:/server.com:443/alfresco/service/api/people/name@mailserver.com/sites
2015-10-05 14:30:01.920 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.923 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:01.924 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:01.926 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:01.929 AlfrescoApp[5533:30233] DEBUG [AlfrescoSiteCache buildCacheWithDelegate:completionBlock:] Site cache building already in progress
2015-10-05 14:30:01.955 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.959 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:01.963 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:02.042 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/slingshot/profile/avatar/name@mailserver.com
2015-10-05 14:30:02.193 AlfrescoApp[5533:30233] DEBUG [AlfrescoSiteCache internalBuildCacheWithDelegate:completionBlock:] Requesting favorite site data from delegate
2015-10-05 14:30:02.196 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/people/name@mailserver.com/preferences?pf=org.alfresco.share.sites
2015-10-05 14:30:02.358 AlfrescoApp[5533:30233] DEBUG [AlfrescoSiteCache internalBuildCacheWithDelegate:completionBlock:] Requesting pending site data from delegate
2015-10-05 14:30:02.361 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/invitations?inviteeUserName=name@mailserver.com
2015-10-05 14:30:02.539 AlfrescoApp[5533:31537] DEBUG [AlfrescoSiteCache processCacheDataWithDelegate:completionBlock:] Site cache successfully built on background thread
2015-10-05 14:30:02.903 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:03.065 AlfrescoApp[5533:30233] WARN [AppConfigurationManager sessionReceived:] Could not retrieve the default profile from server config: The requested node wasn't found
2015-10-05 14:30:04.835 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:04.839 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/slingshot/doclib/containers/aixzellent-rd
2015-10-05 14:30:05.306 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:05.309 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:05.342 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:05.714 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:05.717 AlfrescoApp[5533:30233] DEBUG [AlfrescoFavoritesCache buildCacheWithDelegate:completionBlock:] Building favorites cache
2015-10-05 14:30:05.720 AlfrescoApp[5533:30233] DEBUG [AlfrescoFavoritesCache internalBuildCacheWithDelegate:completionBlock:] Requesting favorite node data from delegate
2015-10-05 14:30:05.724 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/people/name@mailserver.com/preferences
2015-10-05 14:30:05.840 AlfrescoApp[5533:30233] DEBUG [AlfrescoFavoritesCache buildCacheWithDelegate:completionBlock:] Favorites cache building already in progress
2015-10-05 14:30:05.867 AlfrescoApp[5533:30233] DEBUG [AlfrescoFavoritesCache buildCacheWithDelegate:completionBlock:] Favorites cache building already in progress
2015-10-05 14:30:06.071 AlfrescoApp[5533:30233] DEBUG [AlfrescoFavoritesCache internalBuildCacheWithDelegate:completionBlock:] Favorites cache successfully built
2015-10-05 14:30:06.755 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:06.760 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPISiteService initWithSession:] Found an existing SiteCache in session
2015-10-05 14:30:06.764 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:07.436 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.439 AlfrescoApp[5533:31500] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/78710a2e-9ccd-4c55-b34e-c4af52da58c4/content/thumbnails/doclib?c=queue
2015-10-05 14:30:07.459 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.461 AlfrescoApp[5533:31536] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/5e2073d4-1f23-46c1-a7e2-9febccbc4acf/content/thumbnails/doclib?c=queue
2015-10-05 14:30:07.487 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.490 AlfrescoApp[5533:31537] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/19201bcf-ed44-43c3-a24d-dfaa48cc5dd1/content/thumbnails/doclib?c=queue
2015-10-05 14:30:07.523 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.525 AlfrescoApp[5533:31533] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/46061784-1dcc-4087-8785-fb6c7dcc7062/content/thumbnails/doclib?c=queue
2015-10-05 14:30:07.550 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.584 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:07.616 AlfrescoApp[5533:31500] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/9eec6853-ecce-4551-bed6-0be0ab2f7223/content/thumbnails/doclib?c=queue
2015-10-05 14:30:07.623 AlfrescoApp[5533:31536] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/cd12019f-039c-4c9a-aab5-1d26f151bddb/content/thumbnails/doclib?c=queue
2015-10-05 14:30:09.595 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:09.599 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:09.776 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/cd12019f-039c-4c9a-aab5-1d26f151bddb/tags
2015-10-05 14:30:09.820 AlfrescoApp[5533:30233] DEBUG [AlfrescoLegacyAPIDocumentFolderService initWithSession:] Found an existing FavoritesCache in session
2015-10-05 14:30:09.824 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:09.842 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:11.206 AlfrescoApp[5533:30233] Reachability Flag Status: -R ------- networkStatusForFlags
2015-10-05 14:30:12.140 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/cd12019f-039c-4c9a-aab5-1d26f151bddb/ratings
2015-10-05 14:30:12.208 AlfrescoApp[5533:30233] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7f93b3870500 H:[UISegmentedControl:0x7f93b3a49d50(310)]>",
"<NSLayoutConstraint:0x7f93b3ac2ed0 H:[UISegmentedControl:0x7f93b3a49d50]-(5)-| (Names: '|':UIView:0x7f93b3c2f170 )>",
"<NSLayoutConstraint:0x7f93b3a7fe00 UIView:0x7f93b3c2f170.centerX == UISegmentedControl:0x7f93b3a49d50.centerX>",
"<NSLayoutConstraint:0x7f93b3fa0e00 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7f93b3c2f170(375)]>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7f93b3870500 H:[UISegmentedControl:0x7f93b3a49d50(310)]>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-10-05 14:30:12.549 AlfrescoApp[5533:30233] DEBUG [AlfrescoDefaultHTTPRequest connectWithURL:method:session:requestBody:outputStream:completionBlock:] GET https://server.com:443/alfresco/service/api/node/workspace/SpacesStore/cd12019f-039c-4c9a-aab5-1d26f151bddb/comments?pageSize=25&startIndex=0&reverse=true
2015-10-05 14:30:12.899 AlfrescoApp[5533:30233] DEBUG [AlfrescoFileManager(Extensions) createFolderAtPathIfItDoesNotExist:] Unable to create folder at path: (null). Error: The file couldn’t be saved.
2015-10-05 14:30:16.271 AlfrescoApp[5533:30233] DEBUG [AlfrescoFileManager(Extensions) createFolderAtPathIfItDoesNotExist:] Unable to create folder at path: (null). Error: The file couldn’t be saved.
2015-10-05 14:30:16.276 AlfrescoApp[5533:30233] DEBUG [AlfrescoFileManager(Extensions) createFolderAtPathIfItDoesNotExist:] Unable to create folder at path: (null). Error: The file couldn’t be saved.
2015-10-05 14:30:16.323 AlfrescoApp[5533:30233] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSFileManager copyItemAtPath:toPath:error:]: destination path is nil'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106c8ff65 exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000106088deb objc_exception_throw + 48
2 CoreFoundation 0x0000000106c8fe9d +[NSException raise:format:] + 205
3 Foundation 0x00000001042ecc5a -[NSFileManager copyItemAtPath:toPath:error:] + 199
4 AlfrescoApp 0x000000010340d61f -[AlfrescoProtectionAwareFileManager copyItemAtPath:toPath:error:] + 143
5 AlfrescoApp 0x00000001034336f5 -[DownloadManager copyDocumentFrom:destinationFilename:overwriteExisting:error:] + 549
6 AlfrescoApp 0x0000000103432a26 -[DownloadManager copyToDownloadsFolder:documentName:contentPath:overwriteExisting:error:] + 502
7 AlfrescoApp 0x000000010342fad1 -[DownloadManager saveDocument:documentName:contentPath:suppressAlerts:completionBlock:] + 705
8 AlfrescoApp 0x000000010342f6b8 -[DownloadManager saveDocument:contentPath:suppressAlerts:completionBlock:] + 184
9 AlfrescoApp 0x000000010342f5b7 -[DownloadManager saveDocument:contentPath:completionBlock:] + 135
10 AlfrescoApp 0x000000010342f4ac -[DownloadManager downloadDocument:contentPath:session:completionBlock:] + 524
11 AlfrescoApp 0x0000000103515795 -[ActionViewHandler pressedDownloadActionItem:] + 1125
12 AlfrescoApp 0x000000010350dca4 -[DocumentPreviewViewController didPressActionItem:cell:inView:] + 1268
13 AlfrescoApp 0x00000001033f7ab3 -[ActionCollectionView collectionView:didSelectItemAtIndexPath:] + 259
14 UIKit 0x0000000105417eb0 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:] + 701
15 UIKit 0x0000000105438d51 -[UICollectionView touchesEnded:withEvent:] + 574
16 UIKit 0x0000000104e0e663 forwardTouchMethod + 349
17 UIKit 0x0000000104e0e72c -[UIResponder touchesEnded:withEvent:] + 49
18 UIKit 0x0000000104e0e663 forwardTouchMethod + 349
19 UIKit 0x0000000104e0e72c -[UIResponder touchesEnded:withEvent:] + 49
20 UIKit 0x00000001050c3ca5 _UIGestureRecognizerUpdate + 10289
21 UIKit 0x0000000104c7d592 -[UIWindow _sendGesturesForEvent:] + 1137
22 UIKit 0x0000000104c7e681 -[UIWindow sendEvent:] + 849
23 UIKit 0x0000000104c30752 -[UIApplication sendEvent:] + 263
24 UIKit 0x0000000104c0bfcc _UIApplicationHandleEventQueue + 6693
25 CoreFoundation 0x0000000106bbc0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17
26 CoreFoundation 0x0000000106bb1fcc __CFRunLoopDoSources0 + 556
27 CoreFoundation 0x0000000106bb1483 __CFRunLoopRun + 867
28 CoreFoundation 0x0000000106bb0e98 CFRunLoopRunSpecific + 488
29 GraphicsServices 0x0000000109a21ad2 GSEventRunModal + 161
30 UIKit 0x0000000104c11676 UIApplicationMain + 171
31 AlfrescoApp 0x000000010340192f main + 111
32 libdyld.dylib 0x000000010800f92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

I can't reproduce this on my local development environment. Could you supply a few more details please?

  • Which version of Xcode?
  • Which version of iOS SDK?
  • Did the simulator have a previous version of the app, or is this a clean install?

As you're running from source code perhaps you could see where the nil folder reference is coming from? Presumably an iOS SDK call is returning nil somewhere in that stack trace?

My Xcode version is 7.0.1, I have reseted my simulator and I built code from master branch using these command:
git clone --recursive git@github.com:Alfresco/alfresco-ios-app.git
So application version is 2.2(dev).
While trying to download any file Xcode brings up this file:

screenshot 2015-10-06 16 15 08

I am not very experienced in Xcode and iOS development so if you need more information I can provide.

I just tried those exact steps and everything worked as expected.

I guess if you put a breakpoint on pressedDownloadActionItem: and step through to see why downloadPath is getting set to nil that might help figure out what's going on.

I put break point in two files:

  1. AlfrescoApp/Utils/Catagories/AlfrescoFileManager+Extensions.m and I get “nil” for “sharedContainerDownloadsPath” and "downloadsFolderPathURL" when I click on a file:
    screen shot 2015-10-12 at 11 29 52

  2. AlfrescoApp/Model/Views/Model/ActionViewHandler.m where I get “(null) @"NSUnderlyingError" : domain: @"NSPOSIXErrorDomain" - code: 17” when I press download:
    screen shot 2015-10-12 at 11 24 49

Oh I see what's going on. In your Apple Developer Portal you need to create an App Group and update the kSharedAppGroupIdentifier constant to match.

Updating kSharedAppGroupIdentifier did not fix the issue. Even when I want to choose a file for "Upload" I get same error message.

You may need to check your apps capabilities (near the build settings tab in Xcode) also match your different IDs. Check for all targets, not just the app.

In capablities tab App Group is enabled for AlfrecoAppDocumentPicker and AlfrecoAppDocumentPickerFileProveder and I provide both of them with keys from Apple Developer portal. It looks like there is a problem with granting access to device storage.

The only thing I can suggest is to double-check (and perhaps re-create) all settings in the Dev Portal and Xcode. I'm afraid I don't know what to suggest further.

App Groups needed to be enabled for AlfrescoApp as well as AlfrescoAppDocumentPicker. This solved my problem.
Thanks

Thanks for the follow-up. Not sure why we don't need it set on our own app.