{"id":1323,"date":"2013-12-10T02:38:24","date_gmt":"2013-12-09T17:38:24","guid":{"rendered":"http:\/\/morookamitsuo.com\/wp\/?p=1323"},"modified":"2015-03-22T14:04:34","modified_gmt":"2015-03-22T05:04:34","slug":"of%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/morookamitsuo.com\/wp\/?p=1323","title":{"rendered":"oF\u30e1\u30e2"},"content":{"rendered":"<p>\u30fbopenFrameworks\u3067\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u3092\u4ed6\u306e\u30de\u30b7\u30f3\u3067\u52d5\u304b\u3059\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u8abf\u3079\u307e\u3057\u305f\u3002\uff08xcode\uff09<\/p>\n<p>\u53c2\u7167\uff1a<a href=\"http:\/\/openframeworks.jp\/forum\/topic.php?id=79\" target=\"_blank\">http:\/\/openframeworks.jp\/forum\/topic.php?id=79<\/a><\/p>\n<p>GetResoucesPath.mm\u3068GetResoucesPath.h\u3092src\u306b\u8ffd\u52a0<\/p>\n<p>GetResoucesPath.h<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#pragma once\r\n#include &lt;string&gt;\r\nstd::string getResourcesPath();\r\n<\/pre>\n<p>GetResoucesPath.mm<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#include &quot;GetResoucesPath.h&quot;\r\n#import &lt;Cocoa\/Cocoa.h&gt;\r\nstd::string getResourcesPath()\r\n{\r\n\tstd::string result;\r\n\tNSAutoreleasePool *pool = &#x5B;&#x5B;NSAutoreleasePool alloc] init];\r\n\tresult = &#x5B;&#x5B;&#x5B;NSBundle mainBundle] bundlePath] UTF8String];\r\n\t&#x5B;pool release];\r\n\treturn result;\r\n}\r\n<\/pre>\n<p>run script\u306b<br \/>\ncp -rf bin\/data\/ &#8220;$TARGET_BUILD_DIR\/$PRODUCT_NAME.app\/Contents\/Resources\/&#8221;<br \/>\n\u3092\u8ffd\u52a0<\/p>\n<p>ofApp::setup()\u306b<br \/>\nofSetDataPathRoot(getResourcesPath() + &#8220;\/Contents\/Resources\/&#8221;);<br \/>\n\u3092\u8ffd\u52a0<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u30d5\u30a1\u30a4\u30eb\u4f7f\u3063\u305foF\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3082\u6b63\u5e38\u306b\u52d5\u3044\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u304c\u3001\u3082\u3063\u3068\u826f\u3044\u65b9\u6cd5\u3042\u308c\u3070\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u2026\u3002<\/p>\n<p>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\u30fb\u30a2\u30a4\u30b3\u30f3\u306e\u4f5c\u308a\u65b9<\/p>\n<p><a href=\"https:\/\/itunes.apple.com\/jp\/app\/app-icon-resizer\/id759132884?mt=12\" target=\"_blank\">https:\/\/itunes.apple.com\/jp\/app\/app-icon-resizer\/id759132884?mt=12<\/a>(\u4fbf\u5229)\u7b49\u3067\u4f5c\u3063\u305f\u30a2\u30a4\u30b3\u30f3\u7528\u753b\u50cf\u3092\u5165\u308c\u305f\u30d5\u30a9\u30eb\u30c0\u306bicon.iconset\u3068\u540d\u524d\u3092\u4ed8\u3051\u308b<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u2191\u30d5\u30a9\u30eb\u30c0\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3044\u304d iconutil -c icns icon.iconset \u3092\u5b9f\u884c\u3059\u308c\u3070icon.icns\u304c\u51fa\u6765\u308b\u3002<\/p>\n<p>\u3067\u304d\u305ficon.icns\u3092of_v0.8.0_osx_release\/libs\/openFrameworksCompiled\/project\/osx\/icon.icns\u3068\u5dee\u3057\u66ff\u3048\u308c\u3070OK.<br \/>\n<br \/>\n\u8ffd\u8a18\uff1a<br \/>\n\u4e0a\u8a18\u4ee5\u5916\u306e\u30a2\u30a4\u30b3\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5<br \/>\nTARGETS&#8211;>>General&#8211;>>App Icons&#8211;>>Source\u306eUse Asset Catalog\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057Migrate\u3092\u9078\u629e\u3002<br \/>\n<a href=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/eacd187277178f6a1ce919c3563ecf7d.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/eacd187277178f6a1ce919c3563ecf7d.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-12-26 11.19.53\" width=\"750\" height=\"337\"\/><\/a><br \/>\n\u6a2a\u306b\u2192\u30dc\u30bf\u30f3\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u30af\u30ea\u30c3\u30af\u3002<br \/>\n<a href=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/a19f18ec6f82c33700d48f64a2e4d2eb.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/a19f18ec6f82c33700d48f64a2e4d2eb.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-12-26 11.20.06\" width=\"257\" height=\"48\" class=\"aligncenter size-full wp-image-1346\" \/><\/a><br \/>\nAppIcon\u306e\u4e2d\u306e\u3069\u3053\u304b\u306b\u753b\u50cf\u3092\u7f6e\u304f\uff08\u753b\u50cf\u30b5\u30a4\u30ba\u306f\u5408\u308f\u305b\u308b\uff09\u3002<br \/>\n<a href=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/04586c80c78b2c34050879f7fb620181.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/04586c80c78b2c34050879f7fb620181.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2013-12-26 11.35.48\" width=\"750\" height=\"275\" class=\"aligncenter size-full wp-image-1351\" srcset=\"https:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/04586c80c78b2c34050879f7fb620181.png 1560w, https:\/\/morookamitsuo.com\/wp\/wp-content\/uploads\/2013\/12\/04586c80c78b2c34050879f7fb620181-300x110.png 300w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><br \/>\n\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u306e\u3068\u3053\u308d\u306bImages.xcassets\u304c\u51fa\u6765\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092TARGETS&#8211;>> Build Phases\u306eCompile Sources\u3068Copy Files\u306b\u8ffd\u52a0\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308c\u3070\u30a2\u30a4\u30b3\u30f3\u304c\u53cd\u6620\u3055\u308c\u308b\u7b48\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30fbopenFrameworks\u3067\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u3092\u4ed6\u306e\u30de\u30b7\u30f3\u3067\u52d5\u304b\u3059\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u8abf\u3079\u307e\u3057\u305f\u3002\uff08xcode\uff09 \u53c2\u7167\uff1ahttp:\/\/openframeworks.jp\/forum\/topic.php? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[96,9],"class_list":["post-1323","post","type-post","status-publish","format-standard","hentry","category-usual","tag-of","tag-openframeworks"],"_links":{"self":[{"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1323"}],"version-history":[{"count":17,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1323\/revisions"}],"predecessor-version":[{"id":1354,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1323\/revisions\/1354"}],"wp:attachment":[{"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morookamitsuo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}