document-picker icon indicating copy to clipboard operation
document-picker copied to clipboard

Unexpected '@' in program - v3

Open konradkierus opened this issue 9 years ago • 3 comments

Hi, I wanted to use v3 branch which seems to work great on Android but on iOS it causes the following error Unexpected '@' in program. And the next line is throwing 'Property 'allowsMultipleSelection' not found on objectof type 'UIDocumentPicketViewController *'

https://github.com/Elyx0/react-native-document-picker/blob/374e329dcc58c29049f97c96b317015b01c4fb73/ios/RNDocumentPicker/RNDocumentPicker.m#L65

konradkierus avatar Oct 17 '17 10:10 konradkierus

Oh... hmm, this syntax requires Xcode 9. We may have to add an #if of some sort to make this work on different versions.

dantman avatar Oct 17 '17 10:10 dantman

Try the v3 branch again, I just tried adding a conditional: https://github.com/Elyx0/react-native-document-picker/commit/20f937a3463e5a31e8367467dcb4292fff32c4f2#diff-a6dde2a64fd2482aa26815585266c556

dantman avatar Oct 19 '17 00:10 dantman

@dantman Thanks! It compiles fine on xCode 8.2.2 right now

konradkierus avatar Oct 19 '17 08:10 konradkierus