{"action":"opened","issue":{"url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/445","repository_url":"https://api.github.com/repos/CocoaPods/Xcodeproj","labels_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/445/comments","events_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/445/events","html_url":"https://github.com/CocoaPods/Xcodeproj/issues/445","id":187922704,"number":445,"title":"native_target  add_system_library","user":{"login":"zfha","id":4082233,"avatar_url":"https://avatars.githubusercontent.com/u/4082233?v=3","gravatar_id":"","url":"https://api.github.com/users/zfha","html_url":"https://github.com/zfha","followers_url":"https://api.github.com/users/zfha/followers","following_url":"https://api.github.com/users/zfha/following{/other_user}","gists_url":"https://api.github.com/users/zfha/gists{/gist_id}","starred_url":"https://api.github.com/users/zfha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfha/subscriptions","organizations_url":"https://api.github.com/users/zfha/orgs","repos_url":"https://api.github.com/users/zfha/repos","events_url":"https://api.github.com/users/zfha/events{/privacy}","received_events_url":"https://api.github.com/users/zfha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-08T07:43:04Z","updated_at":"2016-11-08T07:43:04Z","closed_at":null,"body":"Hello, I have a question.\r\nIn the `native_target.rb`\r\n```\r\n    def add_system_library(names)\r\n          Array(names).each do |name|\r\n            path = \"usr/lib/lib#{name}.dylib\"\r\n            files = project.frameworks_group.files\r\n            unless reference = files.find { |ref| ref.path == path }\r\n              reference = project.frameworks_group.new_file(path, :sdk_root)\r\n            end\r\n            frameworks_build_phase.add_file_reference(reference, true)\r\n            reference\r\n          end\r\n     end\r\n```\r\n\r\nBut when wo use xcode7+, the library name is not *.dylib,  but *.tbd\r\nand the path is  `/Applications/Xcode.app/Contents/Developer/Platforms/iphoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/*.tbd`\r\nThe old implement maybe has a little problem. Can we use it as before？"}}
{"actor":{"display_login":"zfha"}}