Randonee / BasisApple

Native Apple application development with haxe
39 stars 4 forks source link

Directory not found when building example #7

Closed dpeek closed 10 years ago

dpeek commented 10 years ago

Looks like you might have moved on from this awesome project, but I was hoping for a hint on getting the example built with the latest haxe/hxcpp (I'm building with the latest of both).

Right now AppleBuildTool fais while trying to copy from build/ios/simulator/haxe/cpp/obj/iphonesim/src/ to build/ios/simulator/Files/bin/ as the source directory doesn't exist. The source is this line here: https://github.com/Randonee/BasisApple/blob/master/buildtool/src/basisapple/AppleBuildTool.hx#L248

I've rebuilt hxcpp for ios sim and build tools on both sides, but am no close to figuring out where this directory gets created.

Any help would be greatly appreciated!

Randonee commented 10 years ago

This is fixed in: https://github.com/Randonee/BasisApple/commit/b6b9ad0f210fb4d8f4dec4f7d4653674b9eb73a6 Looks there was a change in hxcpp at some point. A simple path update seems to have fixed it.

Your right that I haven't worked on this in a while. Hopefully a swift target will be created at some point so the cffi stuff will no longer be needed.

Randonee commented 10 years ago

I should also mention that the simulator doesn't seem to be loading from the terminal. You can open the Xcode project and build / run from there. You can find the Xcode project file at: build/ios/simulator/Example.xcodeproj

dpeek commented 10 years ago

Thanks for the fast response – that did the trick. Can't believe I didn't figure that one out! I found that using ios-sim from npm worked, although I'm currently debugging an "Invalid Cast" exception on startup.