{"action":"created","issue":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/624","repository_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker","labels_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/624/comments","events_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/624/events","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/624","id":299934374,"number":624,"title":"Use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumDepthEffect'","user":{"login":"wikieswan","id":7147483,"avatar_url":"https://avatars1.githubusercontent.com/u/7147483?v=4","gravatar_id":"","url":"https://api.github.com/users/wikieswan","html_url":"https://github.com/wikieswan","followers_url":"https://api.github.com/users/wikieswan/followers","following_url":"https://api.github.com/users/wikieswan/following{/other_user}","gists_url":"https://api.github.com/users/wikieswan/gists{/gist_id}","starred_url":"https://api.github.com/users/wikieswan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikieswan/subscriptions","organizations_url":"https://api.github.com/users/wikieswan/orgs","repos_url":"https://api.github.com/users/wikieswan/repos","events_url":"https://api.github.com/users/wikieswan/events{/privacy}","received_events_url":"https://api.github.com/users/wikieswan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-24T11:29:55Z","updated_at":"2018-03-02T07:57:36Z","closed_at":null,"author_association":"NONE","body":"### Version\r\nTell us which versions you are using: \r\n\r\n- react-native-image-crop-picker v0.19.1\r\n- react-native v0.50\r\n\r\n### Platform\r\nTell us to which platform this issue is related\r\n\r\n- iOS\r\n\r\n### Expected behaviour\r\nBUILD FAILED！\r\n\r\n\r\n### Actual behaviour\r\n\r\n`/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:296:66: Use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumDepthEffect'; did you mean 'PHAssetCollectionSubtypeSmartAlbumGeneric'?`\r\n\r\n### Steps to reproduce\r\n\r\n1. run `react-native run-ios` but failed\r\n\r\n\r\nerror msg:\r\n\r\n    /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:296:66: error: use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumDepthEffect'; did you mean 'PHAssetCollectionSubtypeSmartAlbumGeneric'?\r\n                                                  @\"DepthEffect\" : @(PHAssetCollectionSubtypeSmartAlbumDepthEffect),\r\n                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                                                                     PHAssetCollectionSubtypeSmartAlbumGeneric\r\n    In module 'QBImagePicker' imported from /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:25:\r\n    In module 'Photos' imported from /Users/wan-mac/www/syzs/repos/syzs_app/ios/build/Build/Products/Debug-iphonesimulator/QBImagePicker.framework/Headers/QBImagePickerController.h:10:\r\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h:78:5: note: 'PHAssetCollectionSubtypeSmartAlbumGeneric' declared here\r\n        PHAssetCollectionSubtypeSmartAlbumGeneric    = 200,\r\n        ^\r\n    /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:297:65: error: use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumLivePhotos'; did you mean 'PHAssetCollectionSubtypeSmartAlbumVideos'?\r\n                                                  @\"LivePhotos\" : @(PHAssetCollectionSubtypeSmartAlbumLivePhotos),\r\n                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                                                                    PHAssetCollectionSubtypeSmartAlbumVideos\r\n    In module 'QBImagePicker' imported from /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:25:\r\n    In module 'Photos' imported from /Users/wan-mac/www/syzs/repos/syzs_app/ios/build/Build/Products/Debug-iphonesimulator/QBImagePicker.framework/Headers/QBImagePickerController.h:10:\r\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h:80:5: note: 'PHAssetCollectionSubtypeSmartAlbumVideos' declared here\r\n        PHAssetCollectionSubtypeSmartAlbumVideos     = 202,\r\n        ^\r\n    /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:298:63: error: use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumAnimated'\r\n                                                  @\"Animated\" : @(PHAssetCollectionSubtypeSmartAlbumAnimated),\r\n                                                                  ^\r\n    /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:299:67: error: use of undeclared identifier 'PHAssetCollectionSubtypeSmartAlbumLongExposures';\r\n     did you mean 'PHAssetCollectionSubtypeSmartAlbumTimelapses'?\r\n                                                  @\"LongExposure\" : @(PHAssetCollectionSubtypeSmartAlbumLongExposures),\r\n                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n                                                                      PHAssetCollectionSubtypeSmartAlbumTimelapses\r\n    In module 'QBImagePicker' imported from /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:25:\r\n    In module 'Photos' imported from /Users/wan-mac/www/syzs/repos/syzs_app/ios/build/Build/Products/Debug-iphonesimulator/QBImagePicker.framework/Headers/QBImagePickerController.h:10:\r\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h:82:5: note: 'PHAssetCollectionSubtypeSmartAlbumTimelapses' declared here\r\n        PHAssetCollectionSubtypeSmartAlbumTimelapses = 204,\r\n        ^\r\n    /Users/wan-mac/www/syzs/repos/syzs_app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.m:302:32: warning: unused variable 'album' [-Wunused-variable]\r\n                    for (NSString* album in [self.options objectForKey:@\"smartAlbums\"]) {\r\n                                   ^\r\n    1 warning and 4 errors generated.\r\n\r\n\r\n    ** BUILD FAILED **\r\n\r\n![65 pic_hd](https://user-images.githubusercontent.com/7147483/36629946-c5d5bdce-1998-11e8-89ed-ce3ef659345f.jpg)\r\n\r\nI need some help, Thanks!"},"comment":{"url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/comments/369849109","html_url":"https://github.com/ivpusic/react-native-image-crop-picker/issues/624#issuecomment-369849109","issue_url":"https://api.github.com/repos/ivpusic/react-native-image-crop-picker/issues/624","id":369849109,"user":{"login":"luqmanrom","id":6434819,"avatar_url":"https://avatars2.githubusercontent.com/u/6434819?v=4","gravatar_id":"","url":"https://api.github.com/users/luqmanrom","html_url":"https://github.com/luqmanrom","followers_url":"https://api.github.com/users/luqmanrom/followers","following_url":"https://api.github.com/users/luqmanrom/following{/other_user}","gists_url":"https://api.github.com/users/luqmanrom/gists{/gist_id}","starred_url":"https://api.github.com/users/luqmanrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luqmanrom/subscriptions","organizations_url":"https://api.github.com/users/luqmanrom/orgs","repos_url":"https://api.github.com/users/luqmanrom/repos","events_url":"https://api.github.com/users/luqmanrom/events{/privacy}","received_events_url":"https://api.github.com/users/luqmanrom/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T07:57:36Z","updated_at":"2018-03-02T07:57:36Z","author_association":"NONE","body":"I had the same issues. Solved it by upgrading my XCode from version 8.3.2 to version 9.2"}}
{"actor":{"display_login":"luqmanrom"}}