まずはmrubyをios用にビルドします。 こちら を参考にbuild_config.rbを編集します。 build_config.rb MRuby::CrossBuild.new('ios_sim') do |conf| toolchain :clang SDK_PATH_SIM = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk" ARCH_SIM = "-arch x86_64" conf.cc.flags << "#{ARCH_SIM} -mios-simulator-version-min=9.0" conf.cc.include_paths << "#{SDK_PATH_SIM}/usr/inc
![5分でmrubyをswiftから呼ぶ方法 - yamshing's diary](https://cdn-ak-scissors.b.st-hatena.com/image/square/c61d14f6315665b85934ce5a6a443ac90b9c31d5/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fy%2Fyamshing%2F20160926%2F20160926213928.png)