{"id":1123,"date":"2022-01-02T22:36:05","date_gmt":"2022-01-03T04:36:05","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=1123"},"modified":"2022-01-02T22:42:09","modified_gmt":"2022-01-03T04:42:09","slug":"swift-build-and-run","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=1123","title":{"rendered":"Swift, build, run, LMP?"},"content":{"rendered":"<p>For future reference, when building a Swift package, use Terminal and move into the directory of the Swift project. In Terminal, type:<\/p>\n<p><code>swift build<\/code><\/p>\n<p>The build should finish with &#8220;Build complete!&#8221;<\/p>\n<p>For the <a href=\"https:\/\/github.com\/MillerTechnologyPeru\/hcitool\/\">hcitool<\/a> project, I then tried to run it with:<\/p>\n<p><code>.build\/x86_64-apple-macosx\/debug\/hcitool ibeacon<\/code><\/p>\n<p>A prerequisite for this stunt is to have Xcode installed if you&#8217;re on a Mac. Eventually I want to find out my Mac&#8217;s Bluetooth LMP with instructions on this <a href=\"https:\/\/lynxbee.com\/using-hcitool-to-get-bluetooth-device-information\/\">site<\/a> by using this command:<\/p>\n<p><code>sudo hcitool info 9C:65:B0:A0:1E:BD<\/code><\/p>\n<p>I&#8217;m hoping I find an <a href=\"https:\/\/www.howtogeek.com\/360849\/how-to-check-which-bluetooth-version-your-pc-or-mac-supports\/\">LMP of 8<\/a>. Maybe I&#8217;ll get another chance if <a href=\"https:\/\/github.com\/MillerTechnologyPeru\/hcitool\/issues\/52\">this issue<\/a> is resolved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For future reference, when building a Swift package, use Terminal and move into the directory of the Swift project. In Terminal, type: swift build The build should finish with &#8220;Build complete!&#8221; For the hcitool project, I then tried to run &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=1123\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1123","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1123"}],"version-history":[{"count":6,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions"}],"predecessor-version":[{"id":1129,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions\/1129"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}