SIMBL Plugin éçºã§ãããã¬ã使ãæ¹æ³
ãã2ã¶æãããåã«ãªãããããã¾ããããXcodeé¢é£ã§èª¿ã¹ç©ããã¦ããã¨ãã«å¶ç¶è¦ã¤ããæ¹æ³ãã¡ãã£ã¨å¼ã£ãããã¾ãå
·åã« SIMBL plugin åãã«ãåãããã£ã¨ãã話ã§ãã
è¶
ããããªæ
å ±ã§ãããåã¯è¶
ãã³ã·ã§ã³ãä¸ããã¾ããã®ã§ãç´¹ä»ã
Custom Executable ã追å
ã¡ãã¥ã¼ãã¼ãããâProjectâ ï¼ âNew Custom Executableâ ãã¯ãªãã¯
åºã¦ããã¦ã¤ã³ãã¦ã«é©å½ãªååãä»ãã¦ããã©ã°ã¤ã³ã®å¯¾è±¡ã¨ãªãã¢ããªãé¸æã
Run Script Build Phase ã追å
ã¡ãã¥ã¼ãã¼ãããâProjectâ ï¼ âNew Build Phaseâ ï¼ âNew Run Script Build Phaseâ ãã¯ãªãã¯
åºã¦ããã¦ã¤ã³ãã¦ã«ä»¥ä¸ã®ã¹ã¯ãªãããã³ããã
# clean up any previous products/symbolic links in the SIMBL Plugins folder if [ -a "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}" ]; then rm -Rf "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}" fi # Depending on the build configuration, either copy or link to the most recent product if [ "${CONFIGURATION}" == "Debug" ]; then # if we're debugging, add a symbolic link to the plug-in ln -sf "${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME}" \ "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}" elif [ "${CONFIGURATION}" == "Release" ]; then # if we're compiling for release, just copy the plugin to the SIMBL Plugins folder cp -Rfv "${TARGET_BUILD_DIR}/${FULL_PRODUCT_NAME}" \ "${USER_LIBRARY_DIR}/Application Support/SIMBL/Plugins/${FULL_PRODUCT_NAME}" fi
Buildè¨å®ãå¤æ´
åã®ç°å¢ã§ã¯å¼ãå¿
è¦ãããã¾ããã§ãããã
Target ã® ã³ã³ããã¹ãã¡ãã¥ã¼ âGet Infoâ ï¼ âBuildâ ã¿ã 㧠åé
ç®ãå¤æ´ã
- "Strip Debug Symbols During Copy" ã»ã»ã» Offã
- "Generate Debug Symbols" ã»ã»ã» On
- âOptimization levelâ ã»ã»ã» None
ããã¾ã
ããã§Debugãã«ãæã«BreakePointãæå¹ã«ãªã£ã¦æ®éã®Cocoaã¢ããªãiPhoneã¢ããªã¿ããã«ãããã°ãã§ããããã«ãªãã¨æãã¾ããå®ã¯ä»ã¾ã§ãã®æ¹æ³ãç¥ããªãã£ãã®ã§å°éã«NSLog ï¼ Console.app ã§ãã£ã¦ã¾ããã
åé¡ç¹ã¨ãã¦è¤æ°ã®ãã©ã°ã¤ã³ãå¹³è¡ãã¦ä½ã£ãããã¦ãã¨å¥ãã©ã°ã¤ã³ã®ãã¬ã¤ã¯ãã¤ã³ãã§æ¢ã¾ãäºãããã¾ããã
ãã¨ãããã°ãçµããããã¨Safariãçµäºãã¾ãã
ã§ãããã®æ¹æ³ã§ã ãã¶éçºã楽ã«ãªãããã§ãã
Snow Leopard ã§ã¯ SIMBL ã使ããªããªãããã§ãããã¾ã誰ããåçãªæ段ã§ç©´ãéãã¦ãããã¨æå¾ ãã¦ãã¾ãã
åèURL
Technical Q&A QA1500: Debugging a WebKit Plug-in in Xcode
http://developer.apple.com/qa/qa2006/qa1500.html#//apple_ref/doc/uid/DTS10004165