{"id":265,"date":"2013-12-27T05:05:39","date_gmt":"2013-12-26T20:05:39","guid":{"rendered":"http:\/\/blog.ymyzk.com\/?p=265"},"modified":"2014-12-03T09:57:08","modified_gmt":"2014-12-03T00:57:08","slug":"bibdesk-ios-build","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2013\/12\/bibdesk-ios-build\/","title":{"rendered":"BibDesk iOS \u3092\u30d3\u30eb\u30c9\u3057\u3066\u5229\u7528\u3059\u308b"},"content":{"rendered":"

\"BibDesk<\/a><\/p>\n

Mac \u7528\u306e BibTeX \u7ba1\u7406\u30c4\u30fc\u30eb\u306e BibDesk \u306e iOS \u7248\u304c\u958b\u767a\u3055\u308c\u3066\u3044\u307e\u3059. (BibDesk \u306f MacTeX \u306b\u3082\u53ce\u9332\u3055\u308c\u3066\u3044\u307e\u3059.) iOS \u7248\u3067\u306f bib \u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u306f\u3067\u304d\u306a\u3044\u3082\u306e\u306e, Dropbox \u3067 bib \u30d5\u30a1\u30a4\u30eb\u3068 PDF \u30d5\u30a1\u30a4\u30eb\u3092\u540c\u671f\u3057\u3066, \u95b2\u89a7\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059.\u00a0Universal \u30a2\u30d7\u30ea\u3067 iPad \u306b\u3082\u5bfe\u5fdc\u3057\u3066\u304a\u308a, \u8ad6\u6587\u7b49\u306e\u7ba1\u7406\u306b\u6d3b\u7528\u3067\u304d\u305d\u3046\u3067\u3059.<\/p>\n

\u3057\u304b\u3057, 2013\u5e7412\u6708\u6642\u70b9\u3067 App Store \u3067\u306f\u914d\u4fe1\u3055\u308c\u3066\u304a\u3089\u305a, \u5404\u81ea\u3067\u30d3\u30eb\u30c9\u3057\u3066\u5229\u7528\u3059\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093. \u3053\u306e\u8a18\u4e8b\u3067\u306f BibDesk iOS \u3092\u30d3\u30eb\u30c9\u3057\u3066\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059.<\/p>\n

<\/p>\n

\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u53d6\u5f97<\/h2>\n

\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f Subversion \u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059.<\/p>\n

\r\nsvn checkout https:\/\/bibdesk.svn.sourceforge.net\/svnroot\/bibdesk\/trunk\/bibdesk_ios bibdesk_ios\r\n<\/pre>\n

Xcode \u3067\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u958b\u304f<\/h2>\n

\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u305f bibdesk_ios \u5185\u306e BibDesk.xcworkspace<\/strong> \u3092 Xcode \u3067\u958b\u304d\u307e\u3059.(BibDesk.xcodeproj \u3067\u306f\u306a\u3044\u306e\u3067\u6ce8\u610f.)<\/p>\n

Rev. 19577 \u306f Xcode 4.6.3 + iOS SDK 6.1 \u3068 Xcode 5.0.2 + iOS SDK 7.1 \u3067\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059. \u30a2\u30d7\u30ea\u81ea\u4f53\u306f iOS 5.1+ \u5bfe\u5fdc\u3067\u3059.<\/p>\n

Dropbox\u306e API \u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n

\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5185\u306b Dropbox \u306e API \u30ad\u30fc\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u304c, \u3053\u308c\u306f\u958b\u767a\u7528\u306e\u30ad\u30fc\u3067\u30e6\u30fc\u30b6\u30fc\u6570\u304c100\u306b\u5236\u9650\u3055\u308c\u3066\u304a\u308a, \u3059\u3067\u306b\u305d\u306e\u5236\u9650\u306b\u9054\u3057\u3066\u3044\u308b\u305f\u3081\u5229\u7528\u3067\u304d\u307e\u305b\u3093. \u3088\u3063\u3066, \u5404\u81ea\u3067\u65b0\u305f\u306a\u958b\u767a\u8005\u7528\u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u307e\u3059.<\/p>\n

    \n
  1. Dropbox \u306e App Console<\/a> \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059.<\/li>\n
  2. Create App \u30dc\u30bf\u30f3\u3092\u62bc\u3057, \u65b0\u3057\u3044 App \u3092\u4f5c\u6210\u3057\u307e\u3059.<\/li>\n
  3. Dropbox API App \u3092\u9078\u629e\u3057\u307e\u3059.\n
      \n
    1. What type of data does your app need to store on Dropbox? \u306f Files and data stores \u3092\u9078\u629e.<\/li>\n
    2. Can your app be limited to its own, private folder? \u306f No \u3092\u9078\u629e.<\/li>\n
    3. What type of files does your app need access to? \u306f All file types \u3092\u9078\u629e.<\/li>\n
    4. Provide an app name, and you’re on your way. \u306f\u9069\u5f53\u306b\u8a2d\u5b9a.<\/li>\n<\/ol>\n<\/li>\n
    5. Create App \u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059.<\/li>\n
    6. App key \u3068 App secret \u3092\u542b\u3080\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059.<\/li>\n<\/ol>\n

      \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b<\/h2>\n

      Xcode \u306b\u623b\u308a, BibDesk -> BibDesk iOS -> Classes -> Application Delegate -> BDSKAppDelegate.m \u3092\u958b\u304d\u307e\u3059.
      \ndidFinishLaunchingWithOptions \u5185\u3067, \u30c7\u30d5\u30a9\u30eb\u30c8\u306e Dropbox \u306e API \u30ad\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u90e8\u5206\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059.<\/p>\n

      \r\n\/\/ Set these variables before launching the app\r\nNSString* appKey = @"<\u53d6\u5f97\u3057\u305f App key>";\r\nNSString* appSecret = @"<\u53d6\u5f97\u3057\u305f App secret>";\r\nNSString *root = kDBRootDropbox; \/\/ Should be set to either kDBRootAppFolder or kDBRootDropbox\r\nDBSession* session = [[DBSession alloc] initWithAppKey:appKey appSecret:appSecret root:root];\r\n\/\/DBSession* session = NewDBSessionWithBibDeskMobile();\r\n<\/pre>\n

      \u3055\u3089\u306b, BibDesk \u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u5b9a\u3092\u958b\u304d, BibDesk \u30bf\u30fc\u30b2\u30c3\u30c8\u306e Info -> URL Types \u3092\u958b\u304d, URL Schemes \u3092 db-<\u53d6\u5f97\u3057\u305f App key> \u306b\u5909\u66f4\u3057\u307e\u3059.<\/p>\n

      \u30d3\u30eb\u30c9<\/h2>\n

      \u3053\u3053\u307e\u3067\u306e\u8a2d\u5b9a\u3067, \u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3067\u306e\u5b9f\u884c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059. Run \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068, \u30d3\u30eb\u30c9\u3055\u308c\u3066\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3067\u30a2\u30d7\u30ea\u304c\u8d77\u52d5\u3057\u307e\u3059.<\/p>\n

      \u5b9f\u6a5f\u3067\u5229\u7528\u3059\u308b\u5834\u5408\u306f, \u4ed6\u306e\u30a2\u30d7\u30ea\u306e\u5b9f\u6a5f\u30c6\u30b9\u30c8\u3092\u884c\u3046\u306e\u3068\u540c\u3058\u624b\u9806\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059.<\/p>\n

      \u53c2\u8003<\/h2>\n