{"action":"created","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/1153","repository_url":"https://api.github.com/repos/openfl/openfl","labels_url":"https://api.github.com/repos/openfl/openfl/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/1153/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/1153/events","html_url":"https://github.com/openfl/openfl/issues/1153","id":157616398,"number":1153,"title":"Cannot build iOS. Unable to find utility clang++.","user":{"login":"the-dan-man","id":19663477,"avatar_url":"https://avatars.githubusercontent.com/u/19663477?v=3","gravatar_id":"","url":"https://api.github.com/users/the-dan-man","html_url":"https://github.com/the-dan-man","followers_url":"https://api.github.com/users/the-dan-man/followers","following_url":"https://api.github.com/users/the-dan-man/following{/other_user}","gists_url":"https://api.github.com/users/the-dan-man/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dan-man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dan-man/subscriptions","organizations_url":"https://api.github.com/users/the-dan-man/orgs","repos_url":"https://api.github.com/users/the-dan-man/repos","events_url":"https://api.github.com/users/the-dan-man/events{/privacy}","received_events_url":"https://api.github.com/users/the-dan-man/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-31T08:28:20Z","updated_at":"2016-10-02T03:06:22Z","closed_at":"2016-06-01T02:38:42Z","body":"Hi all, I'm new to the Haxe/OpenFL ecosystem and am having trouble building an iOS demo. [This one](https://github.com/HaxeFlixel/flixel-demos/tree/master/Platformers/Mode) to be exact, from the \"Haxe Flixel\" demos project.\r\n\r\nI can build it fine for flash, mac, and android but not iOS. It says it cannot find `clang` but I do have it:\r\n\r\n```\r\n$ clang++ --version\r\nApple LLVM version 7.3.0 (clang-703.0.31)\r\nTarget: x86_64-apple-darwin15.4.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n```\r\n\r\nThis is the actual error. The `-Dsource-header` bit is from [this similar issue](https://github.com/openfl/openfl/issues/1132). This is the error when I use the command below or `lime test ios`:\r\n\r\n```\r\n$ haxelib run openfl build ios -simulator -Dsource-header=haxe\r\n2016-05-31 01:19:57.301 xcodebuild[37528:14352351] Failed to load plugin at: /Users/dan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin, skipping.  Reason for failure: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]\r\nxcodebuild: error: SDK \"iphonesimulator4.2\" cannot be located.\r\nxcrun: error: unable to find utility \"clang++\", not a developer tool or in PATH\r\nError: error running xcrun --sdk iphonesimulator4.2 clang++ -Iinclude -c -stdlib=libc++ -O2 -fmessage-length=0 -pipe -Wno-trigraphs -fno-stack-protector -fpascal-strings -fasm-blocks -Wreturn-type -Wno-unused-variable -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -miphoneos-version-min=5.0 -DIPHONE=IPHONE -DIPHONESIM=IPHONESIM -fobjc-arc -DOBJC_ARC -Wno-parentheses -Wno-null-dereference -Wno-unused-value -Wno-bool-conversion -DSTATIC_LINK -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=330 -I/usr/local/lib/haxe/lib/hxcpp/3,3,49/include -fexceptions -fstrict-aliasing -Wno-invalid-offsetof -x c++-header -o /Users/dan/dev/flixel-demos/Platformers/Mode/export/ios/Mode/haxe/build/Release-iphonesim/obj/iphonesim-c11/__pch/haxe/hxcpp.h.gch /usr/local/lib/haxe/lib/hxcpp/3,3,49/include/hxcpp.h\r\nmake: *** [build-haxe-i386] Error 1\r\nCommand /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2\r\n\r\n** BUILD FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tExternalBuildToolExecution Build\\ Haxe\r\n(1 failure)\r\n```\r\n\r\nVersions are all the most recent:\r\n\r\n```\r\n$ haxelib list\r\nactuate: [1.8.6]\r\nbox2d: [1.2.3]\r\nflixel-addons: [2.0.0]\r\nflixel-demos: [2.1.0]\r\nflixel-templates: [2.0.1]\r\nflixel-tools: [1.1.3]\r\nflixel-ui: [2.0.0]\r\nflixel: [4.0.1]\r\nformat: [3.2.1]\r\nheaps: [git]\r\nhxcpp: [3.3.49]\r\nlayout: [1.2.1]\r\nlime-samples: [2.6.0]\r\nlime: [2.9.1]\r\nopenfl-samples: [3.3.1]\r\nopenfl: [3.6.1]\r\nswf: [2.2.0]\r\n```\r\n\r\nAny help appreciated!"},"comment":{"url":"https://api.github.com/repos/openfl/openfl/issues/comments/250950823","html_url":"https://github.com/openfl/openfl/issues/1153#issuecomment-250950823","issue_url":"https://api.github.com/repos/openfl/openfl/issues/1153","id":250950823,"user":{"login":"matthewswallace","id":123816,"avatar_url":"https://avatars.githubusercontent.com/u/123816?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewswallace","html_url":"https://github.com/matthewswallace","followers_url":"https://api.github.com/users/matthewswallace/followers","following_url":"https://api.github.com/users/matthewswallace/following{/other_user}","gists_url":"https://api.github.com/users/matthewswallace/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewswallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewswallace/subscriptions","organizations_url":"https://api.github.com/users/matthewswallace/orgs","repos_url":"https://api.github.com/users/matthewswallace/repos","events_url":"https://api.github.com/users/matthewswallace/events{/privacy}","received_events_url":"https://api.github.com/users/matthewswallace/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T03:06:22Z","updated_at":"2016-10-02T03:06:22Z","body":"@the-dan-man your solution worked for me however I still needed to use the -Dsource-header=haxe flag.\r\n\r\nIs anyone working on a solution for this issue? I'd be happy to look into it but I'm afraid I don't know much about the code base in order to come up with a solution any time soon. "}}
{"actor":{"display_login":"matthewswallace"}}