{"_id":"5ba2b5747091250003437502","project":"578c4badbd223d2000cc1441","version":{"_id":"5ba2b5747091250003437507","project":"578c4badbd223d2000cc1441","__v":0,"forked_from":"5b8469e2146f290003ee2585","createdAt":"2018-04-23T20:03:35.726Z","releaseDate":"2018-04-23T20:03:35.726Z","categories":["5ba2b574709125000343747c","5ba2b574709125000343747d","5ba2b574709125000343747e","5ba2b574709125000343747f","5ba2b5747091250003437480","5ba2b5747091250003437481","5ba2b5747091250003437482","5ba2b5747091250003437483","5ba2b5747091250003437484"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.11.0","version":"2.11.0"},"category":{"_id":"5ba2b574709125000343747d","version":"5ba2b5747091250003437507","project":"578c4badbd223d2000cc1441","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-03-17T18:59:29.780Z","from_sync":false,"order":1,"slug":"getting-started-ios","title":"iOS - Platform Setup"},"user":"57bb7e47afc18c0e00529cf3","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-05-30T19:57:19.906Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"ViroReact 2.8.0 onwards\",\n  \"body\": \"Starting with ViroReact 2.8.0 we have started including our static library (without the need for relying on `use_frameworks!` in the ViroReact package that you get from npm itself.\"\n}\n[/block]\nSteps to switch your setup your iOS pods over to using ViroReact static library are as follows:\n\n1. Open your podfile (located at `ios/Podfile` in your repository`).\n2. Change the line `pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'` to \n     `pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'`\n\n3. Remove the line containing `use_frameworks!`.\n4. Save `Podfile`.\n5. Run `pod install` to properly install the new pod for static lib.\n[block:api-header]\n{\n  \"title\": \"Steps for earlier versions (2.6.1 - 2.7.3)\"\n}\n[/block]\n1. To use, first delete your current react-viro package, from your project root run:rm -rf node_modules/react-viro from the command line.\n\n2. Download the patched react-viro from here:\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"react-viro v2.6.1\",\n    \"0-1\": \"https://s3-us-west-2.amazonaws.com/viro/viro_2_6_1_static_lib/react-viro-2.6.1.tgz\",\n    \"1-0\": \"react-viro v2.7.1\",\n    \"1-1\": \"https://s3-us-west-2.amazonaws.com/viro/viro_2_7_1_static_lib/react-viro-2.7.1.tgz\",\n    \"2-0\": \"react-viro v2.7.3\",\n    \"2-1\": \"https://s3-us-west-2.amazonaws.com/viro/viro_2_7_3_static_lib/react-viro-2.7.3.tgz\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\n3. Install the `.tgz` file. Run `npm install path/to/file.tgz`.\n\n4. Your `Podfile` will need to be modified to remove the `use_frameworks!` line.\n\n5. Run `pod install` to properly install the pods.","excerpt":"","slug":"no_use_frameworks","type":"basic","title":"Integrating w/o use_frameworks! (Cocoapods)"}

Integrating w/o use_frameworks! (Cocoapods)


[block:callout] { "type": "info", "title": "ViroReact 2.8.0 onwards", "body": "Starting with ViroReact 2.8.0 we have started including our static library (without the need for relying on `use_frameworks!` in the ViroReact package that you get from npm itself." } [/block] Steps to switch your setup your iOS pods over to using ViroReact static library are as follows: 1. Open your podfile (located at `ios/Podfile` in your repository`). 2. Change the line `pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'` to `pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'` 3. Remove the line containing `use_frameworks!`. 4. Save `Podfile`. 5. Run `pod install` to properly install the new pod for static lib. [block:api-header] { "title": "Steps for earlier versions (2.6.1 - 2.7.3)" } [/block] 1. To use, first delete your current react-viro package, from your project root run:rm -rf node_modules/react-viro from the command line. 2. Download the patched react-viro from here: [block:parameters] { "data": { "0-0": "react-viro v2.6.1", "0-1": "https://s3-us-west-2.amazonaws.com/viro/viro_2_6_1_static_lib/react-viro-2.6.1.tgz", "1-0": "react-viro v2.7.1", "1-1": "https://s3-us-west-2.amazonaws.com/viro/viro_2_7_1_static_lib/react-viro-2.7.1.tgz", "2-0": "react-viro v2.7.3", "2-1": "https://s3-us-west-2.amazonaws.com/viro/viro_2_7_3_static_lib/react-viro-2.7.3.tgz" }, "cols": 2, "rows": 3 } [/block] 3. Install the `.tgz` file. Run `npm install path/to/file.tgz`. 4. Your `Podfile` will need to be modified to remove the `use_frameworks!` line. 5. Run `pod install` to properly install the pods.