{"action":"closed","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19771","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19771/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19771/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19771/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/19771","id":326581030,"node_id":"MDU6SXNzdWUzMjY1ODEwMzA=","number":19771,"title":"40554795: What is the best way to include CommonCrypto in an iOS modulemap?","user":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"id":586298546,"node_id":"MDU6TGFiZWw1ODYyOTg1NDY=","url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:suggestion","name":"classification:suggestion","color":"444444","default":false},{"id":243427744,"node_id":"MDU6TGFiZWwyNDM0Mjc3NDQ=","url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1","html_url":"https://github.com/lionheart/openradar-mirror/milestone/1","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1/labels","id":1237415,"node_id":"MDk6TWlsZXN0b25lMTIzNzQxNQ==","number":1,"title":"Developer Tools","description":null,"creator":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":4749,"closed_issues":80,"state":"open","created_at":"2015-08-03T02:08:29Z","updated_at":"2018-07-22T21:02:46Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-05-25T16:01:26Z","updated_at":"2018-07-22T21:02:46Z","closed_at":"2018-07-22T21:02:46Z","author_association":"COLLABORATOR","body":"#### Description\n\nFiling this radar for reference so a coworker can ask about it in person at the WWDC labs.\r\n\r\nWhat is the best way to include the CommonCrypto headers in an iOS modulemap? This seems like a good way at first blush:\r\n\r\nhttps://github.com/soffes/CommonCrypto/pull/7/files#diff-3c791a23fd3c0fa2dd79b396aab323d4\r\n\r\nmodule CommonCrypto [system] {\r\n    header \"/usr/include/CommonCrypto/CommonCrypto.h\"\r\n    export *\r\n}\r\n\r\nHowever, some people have reported problems with this approach, since that file may apparently not always exist, as reported in this GitHub issue: https://github.com/soffes/CommonCrypto/issues/8\r\n\r\nA more fragile solution is to do it like this:\r\n\r\nheader \"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h\"\r\n\r\nThe problem is that this relies on /Applications/Xcode.app existing, which it does not on many machines where multiple Xcode versions are managed by naming them like /Applications/Xcode_9.3.app or /Applications/Xcode/9.3/Xcode.app.\r\n\r\nOne could write a run script build phase that injects the output of `xcode-select -p` into the modulemap. This is the most robust solution I can think of, but I was wondering if there’s a simpler, supported way to do it?\n\n-\nProduct Version: \nCreated: 2018-05-25T15:19:51.360790\nOriginated: 2018-05-25T11:19:00\nOpen Radar Link: http://www.openradar.me/40554795"}}
{"actor":{"display_login":"openradar-mirror"}}