{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/19892","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/19892/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/19892/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/19892/events","html_url":"https://github.com/facebook/react-native/issues/19892","id":335672909,"node_id":"MDU6SXNzdWUzMzU2NzI5MDk=","number":19892,"title":"swift cocoapods Could not build Objective-C module 'React'","user":{"login":"CreatFish","id":15152761,"node_id":"MDQ6VXNlcjE1MTUyNzYx","avatar_url":"https://avatars2.githubusercontent.com/u/15152761?v=4","gravatar_id":"","url":"https://api.github.com/users/CreatFish","html_url":"https://github.com/CreatFish","followers_url":"https://api.github.com/users/CreatFish/followers","following_url":"https://api.github.com/users/CreatFish/following{/other_user}","gists_url":"https://api.github.com/users/CreatFish/gists{/gist_id}","starred_url":"https://api.github.com/users/CreatFish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreatFish/subscriptions","organizations_url":"https://api.github.com/users/CreatFish/orgs","repos_url":"https://api.github.com/users/CreatFish/repos","events_url":"https://api.github.com/users/CreatFish/events{/privacy}","received_events_url":"https://api.github.com/users/CreatFish/received_events","type":"User","site_admin":false},"labels":[{"id":937651304,"node_id":"MDU6TGFiZWw5Mzc2NTEzMDQ=","url":"https://api.github.com/repos/facebook/react-native/labels/:clipboard:No%20Environment%20Info","name":":clipboard:No Environment Info","color":"d4c5f9","default":false},{"id":257497884,"node_id":"MDU6TGFiZWwyNTc0OTc4ODQ=","url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:iOS","name":":large_blue_diamond:iOS","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-26T06:14:45Z","updated_at":"2018-06-27T01:38:43Z","closed_at":null,"author_association":"NONE","body":"**Environment**\r\nOS: macOS High Sierra 10.13.4\r\nNode: 8.11.3\r\nYarn: 1.7.0\r\nnpm: 6.1.0\r\nWatchman: Not Found\r\nXcode: Xcode 9.3 Build version 9E145\r\nAndroid Studio: 3.1 AI-173.4720617\r\n\r\n**Packages**\r\nreact: ^16.4.1 => 16.4.1\r\nreact-native: ^0.55.4 => 0.55.4\r\n\r\n**package.json**\r\n```\r\n{\r\n  \"name\": \"RNSwift\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node node_modules/react-native/local-cli/cli.js start\"\r\n  },\r\n  \"dependencies\": {\r\n    \"react\": \"^16.4.1\",\r\n    \"react-native\": \"^0.55.4\"\r\n  }\r\n}\r\n```\r\n\r\n**Podfile**\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\n\r\nplatform :ios, '8.0'\r\nuse_frameworks!\r\n\r\ntarget 'RNSwift' do\r\n\r\n  pod 'React', :path => '../node_modules/react-native', :subspecs => [\r\n    'Core',\r\n    'CxxBridge', # Include this for RN >= 0.47\r\n    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43\r\n    'RCTText',\r\n    'RCTNetwork',\r\n    'RCTWebSocket', # needed for debugging\r\n  ]\r\n  pod \"yoga\", :path => \"../node_modules/react-native/ReactCommon/yoga\"\r\n\r\n  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'\r\n  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'\r\n  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'\r\n\r\nend\r\n\r\ndef change_lines_in_file(file_path, &change)\r\n    print \"Fixing #{file_path}...\\n\"\r\n    \r\n    contents = []\r\n    \r\n    file = File.open(file_path, 'r')\r\n    file.each_line do | line |\r\n        contents << line\r\n    end\r\n    file.close\r\n    \r\n    File.open(file_path, 'w') do |f|\r\n        f.puts(change.call(contents))\r\n    end\r\nend\r\n\r\npost_install do |installer|\r\n    # https://github.com/facebook/yoga/issues/711#issuecomment-381098373\r\n    change_lines_in_file('./Pods/Target Support Files/yoga/yoga-umbrella.h') do |lines|\r\n        lines.reject do | line |\r\n            [\r\n            '#import \"Utils.h\"',\r\n            '#import \"YGLayout.h\"',\r\n            '#import \"YGNode.h\"',\r\n            '#import \"YGNodePrint.h\"',\r\n            '#import \"YGStyle.h\"',\r\n            '#import \"Yoga-internal.h\"',\r\n            ].include?(line.strip)\r\n        end\r\n    end\r\n    \r\n    # https://github.com/facebook/yoga/issues/711#issuecomment-374605785\r\n    change_lines_in_file('../node_modules/react-native/React/Base/Surface/SurfaceHostingView/RCTSurfaceSizeMeasureMode.h') do |lines|\r\n        unless lines[27].include?(\"#ifdef __cplusplus\")\r\n            lines.insert(27, \"#ifdef __cplusplus\")\r\n            lines.insert(34, \"#endif\")\r\n        end\r\n        lines\r\n    end\r\n    \r\n    # https://github.com/facebook/react-native/issues/13198\r\n    change_lines_in_file('../node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h') do |lines|\r\n        lines.map { |line| line.include?(\"#import <RCTAnimation/RCTValueAnimatedNode.h>\") ? '#import \"RCTValueAnimatedNode.h\"' : line }\r\n    end\r\n    \r\n    # https://github.com/facebook/react-native/issues/16039\r\n    change_lines_in_file('../node_modules/react-native/Libraries/WebSocket/RCTReconnectingWebSocket.m') do |lines|\r\n        lines.map { |line| line.include?(\"#import <fishhook/fishhook.h>\") ? '#import \"fishhook.h\"' : line }\r\n    end\r\nend\r\n```\r\n\r\n**Description**\r\nWhen I build my project,I got the following mistakes.\r\n![1](https://user-images.githubusercontent.com/15152761/41892547-11872908-794b-11e8-9498-f5aca65b550a.png)\r\n![2](https://user-images.githubusercontent.com/15152761/41892550-157f788a-794b-11e8-9b57-bd55d54c8f5a.png)\r\n![3](https://user-images.githubusercontent.com/15152761/41892551-16117d7a-794b-11e8-948d-140b5ad8baa4.png)\r\n![4](https://user-images.githubusercontent.com/15152761/41892552-166dcfb2-794b-11e8-8b75-0c6af2448663.png)\r\n![5](https://user-images.githubusercontent.com/15152761/41892553-170c71ee-794b-11e8-9840-7c8cd9811f38.png)\r\n![6](https://user-images.githubusercontent.com/15152761/41892554-176f64d4-794b-11e8-9430-b7112e845192.png)\r\nHow to solve this problem,Thank you very much!"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/400515266","html_url":"https://github.com/facebook/react-native/issues/19892#issuecomment-400515266","issue_url":"https://api.github.com/repos/facebook/react-native/issues/19892","id":400515266,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDUxNTI2Ng==","user":{"login":"CreatFish","id":15152761,"node_id":"MDQ6VXNlcjE1MTUyNzYx","avatar_url":"https://avatars2.githubusercontent.com/u/15152761?v=4","gravatar_id":"","url":"https://api.github.com/users/CreatFish","html_url":"https://github.com/CreatFish","followers_url":"https://api.github.com/users/CreatFish/followers","following_url":"https://api.github.com/users/CreatFish/following{/other_user}","gists_url":"https://api.github.com/users/CreatFish/gists{/gist_id}","starred_url":"https://api.github.com/users/CreatFish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreatFish/subscriptions","organizations_url":"https://api.github.com/users/CreatFish/orgs","repos_url":"https://api.github.com/users/CreatFish/repos","events_url":"https://api.github.com/users/CreatFish/events{/privacy}","received_events_url":"https://api.github.com/users/CreatFish/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T01:38:43Z","updated_at":"2018-06-27T01:38:43Z","author_association":"NONE","body":"@iegik I tried it,But it's no use! I create a repo, can you try to test? Thank you! \r\n[https://github.com/CreatFish/RNSwift](url)"}}
{"actor":{"display_login":"CreatFish"}}