{"action":"opened","issue":{"url":"https://api.github.com/repos/nygard/class-dump/issues/63","repository_url":"https://api.github.com/repos/nygard/class-dump","labels_url":"https://api.github.com/repos/nygard/class-dump/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/nygard/class-dump/issues/63/comments","events_url":"https://api.github.com/repos/nygard/class-dump/issues/63/events","html_url":"https://github.com/nygard/class-dump/issues/63","id":134706155,"number":63,"title":"Building from source as iOS binary only","user":{"login":"fxfactorial","id":3036816,"avatar_url":"https://avatars.githubusercontent.com/u/3036816?v=3","gravatar_id":"","url":"https://api.github.com/users/fxfactorial","html_url":"https://github.com/fxfactorial","followers_url":"https://api.github.com/users/fxfactorial/followers","following_url":"https://api.github.com/users/fxfactorial/following{/other_user}","gists_url":"https://api.github.com/users/fxfactorial/gists{/gist_id}","starred_url":"https://api.github.com/users/fxfactorial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxfactorial/subscriptions","organizations_url":"https://api.github.com/users/fxfactorial/orgs","repos_url":"https://api.github.com/users/fxfactorial/repos","events_url":"https://api.github.com/users/fxfactorial/events{/privacy}","received_events_url":"https://api.github.com/users/fxfactorial/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T21:48:31Z","updated_at":"2016-02-18T21:48:31Z","closed_at":null,"body":"I'm trying to build from source in Xcode by opening the project in XCode and changing in build settings the SDK to use to iOS instead of OS X on latest versions of OS X and XCode and I get errors like:\r\n\r\n```\r\ntarget specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform\r\n```\r\n\r\nWhat do I have to do to make this build as a binary intended to run on iOS, say armv7 or arm64.\r\n\r\nAlso, I'd ideally like the `xcodebuild` invocation that can do this so that I can see what needs to be built with what flags, etc, so I can make a makefile out of this.\r\n\r\nI tried this:\r\n```shell\r\n$ xcodebuild -sdk iphoneos -scheme class-dump build\r\n```\r\nBut got an error of:\r\n```shell\r\n** BUILD FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tCompileC /Users/Edgar/Library/Developer/Xcode/DerivedData/class-dump-dytpevsctimenkfnziaegkkdeltg/Build/Intermediates/class-dump.build/Debug-iphoneos/MachObjC.build/Objects-normal/armv7/CDLCSegment.o Source/CDLCSegment.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n```\r\nThank you."}}