{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1567","repository_url":"https://api.github.com/repos/react-native-community/react-native-camera","labels_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1567/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1567/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1567/events","html_url":"https://github.com/react-native-community/react-native-camera/issues/1567","id":324130350,"number":1567,"title":"Ios Runtime Problems with FaceDetection object","user":{"login":"davidpricedev","id":6391952,"avatar_url":"https://avatars2.githubusercontent.com/u/6391952?v=4","gravatar_id":"","url":"https://api.github.com/users/davidpricedev","html_url":"https://github.com/davidpricedev","followers_url":"https://api.github.com/users/davidpricedev/followers","following_url":"https://api.github.com/users/davidpricedev/following{/other_user}","gists_url":"https://api.github.com/users/davidpricedev/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpricedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpricedev/subscriptions","organizations_url":"https://api.github.com/users/davidpricedev/orgs","repos_url":"https://api.github.com/users/davidpricedev/repos","events_url":"https://api.github.com/users/davidpricedev/events{/privacy}","received_events_url":"https://api.github.com/users/davidpricedev/received_events","type":"User","site_admin":false},"labels":[{"id":194397263,"url":"https://api.github.com/repos/react-native-community/react-native-camera/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":418407441,"url":"https://api.github.com/repos/react-native-community/react-native-camera/labels/iOS","name":"iOS","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-17T18:11:49Z","updated_at":"2018-05-18T16:54:02Z","closed_at":null,"author_association":"NONE","body":"### Which implementation are you using\r\n\r\n*RNCamera*\r\n\r\n### Steps to reproduce\r\n\r\n1. `yarn add react-native-camera`\r\n1. `react-native link react-native-camera`\r\n1. swap out the Podfile line with this: `pod 'react-native-camera', subspecs: ['RCT', 'RN', 'FaceDetector'], path: '../node_modules/react-native-camera'`\r\n1. run `pod install`\r\n1. download all 5 tar.gz google libraries using the links in the main react-native-camera readme\r\n1. unzip all 5 to a \"~/Downloads/gmv\" folder (via `tar -zxvf ../<eachFile>.tar.gz`)\r\n1. delete the \"copy\" and \"BarcodeDetector\" folders (and all the dummy.txt files)\r\n1. In xcode right click on the Frameworks folder (I already have one) and add all 4 folders in the gmv folder (namely: Detector, FaceDetector, Frameworks, and MVDataOutput) with the copy-items and create-groups options. \r\n1. add the AddressBook framework in build phases -> link section\r\n1. add the `-lz` option to the linker flags (I already have `-lc++` and `-Objc`options)\r\n1. Cmd-Q to quit xcode and then restart it \r\n1. use xcode to run it on my phone\r\n1. watch the app crash with \"TypeError: cannot read property fast of undefined\" triggered by `faceDetectionMode={RNCamera.Constants.FaceDetection.Mode.fast}`\r\n\r\n### Does it work with Expo Camera?\r\n\r\nN/A\r\n\r\n### Expected behaviour\r\n\r\nApp should not crash and should work the same way the android side does.\r\n\r\n### Actual behaviour\r\n\r\nRed box error: \"TypeError: cannot read property fast of undefined\" triggered by `faceDetectionMode={RNCamera.Constants.FaceDetection.Mode.fast}`\r\n\r\n### Environment\r\n\r\n- **Node.js version**: v8.9.1\r\n- **React Native version**: 0.53.3\r\n- **React Native platform + platform version**: ios 11.2.6\r\n- **Xcode version**: 9.3.1\r\n\r\n### react-native-camera\r\n\r\n**Version**: 1.1.2\r\n\r\n### More details\r\n\r\nIt might be the same issue as [1494](https://github.com/react-native-community/react-native-camera/issues/1494)? \r\n\r\nAndroid works fine. Compiling for ios works fine. When I comment out everything that touches `RNCamera.Constants.FaceDetection` then the crash goes away in ios. I've followed the extra linking steps to the letter (as described above) 3+ times now with no change in outcome. I've also tried a few variations such as creating a new (second) Frameworks folder anyway. \r\n\r\nThe resulting Frameworks folder looks like this: \r\n![screen shot 2018-05-17 at 12 31 39](https://user-images.githubusercontent.com/6391952/40194036-b48f289a-59ce-11e8-827b-55e06b733805.png)\r\n\r\nIn the Build Phases -> Link section I'm seeing the following new things after following these steps: \r\n\r\n* AddressBook.framework\r\n* GoogleMVDataOutput.framework\r\n* GoogleUtilities.framework\r\n* GoogleInterchangeUtilities.framework\r\n* GoogleMobileVision.framework\r\n* GoogleSymbolUtilities.framework\r\n* FaceDetector.framework\r\n* GoogleNetworkingUtilities.framework\r\n\r\nIn the linker flags section this is what I have: \r\n\r\n![screen shot 2018-05-17 at 12 56 30](https://user-images.githubusercontent.com/6391952/40194993-d085b5ac-59d1-11e8-8e07-0d1d4a24276c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/comments/390267909","html_url":"https://github.com/react-native-community/react-native-camera/issues/1567#issuecomment-390267909","issue_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1567","id":390267909,"user":{"login":"davidpricedev","id":6391952,"avatar_url":"https://avatars2.githubusercontent.com/u/6391952?v=4","gravatar_id":"","url":"https://api.github.com/users/davidpricedev","html_url":"https://github.com/davidpricedev","followers_url":"https://api.github.com/users/davidpricedev/followers","following_url":"https://api.github.com/users/davidpricedev/following{/other_user}","gists_url":"https://api.github.com/users/davidpricedev/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpricedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpricedev/subscriptions","organizations_url":"https://api.github.com/users/davidpricedev/orgs","repos_url":"https://api.github.com/users/davidpricedev/repos","events_url":"https://api.github.com/users/davidpricedev/events{/privacy}","received_events_url":"https://api.github.com/users/davidpricedev/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T16:54:02Z","updated_at":"2018-05-18T16:54:02Z","author_association":"NONE","body":"If I downgrade the version number to match the version of the downloads, then the coordinate issues go away.\r\n\r\nPodfile: \r\n```ruby\r\n  pod 'GoogleMobileVision/FaceDetector', '~> 1.1.0'\r\n  pod 'GoogleMobileVision/Detector', '~> 1.1.0'\r\n  pod 'GoogleMobileVision/MVDataOutput', '~> 1.1.0'\r\n```\r\n\r\nI'm thinking of putting together a PR to fix the documentation on the main readme to use this method when using pods."}}
{"actor":{"display_login":"davidpricedev"}}