Ticket #37372

macOS版 開発環境をXcode8に移行

Date d'ouverture: 2017-07-17 22:51 Dernière mise à jour: 2017-07-24 01:05

Rapporteur:
Propriétaire:
État:
Atteints
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
Aucun

Détails

開発環境をmacOS 10.12(Sierra)とするため、Xcodeを7から8に移行する。 Ver.1.2.2でXcode7に移行済み。(#35750 仕様変更:OS X版開発環境をXcode7に移行)

Ticket History (3/6 Histories)

2017-07-17 22:51 Updated by: yknk
  • New Ticket "macOS版 開発環境をXcode8に移行" created
2017-07-17 23:23 Updated by: yknk
Commentaire

ビルド設定変更

推奨設定

Xcodeのバージョン変更時に提示された推奨設定を受け入れた。

  • Build Settings
  • Project 'MIDITrail' - Update macOS Deployment Target
  • Project 'MIDITrail' - Enable Recommended Warnings
  • Project 'MIDITrail' - Automatically Select Architectures
  • Project 'MIDITrail' - Turn on "Missing Localizability"

Base SDKの変更

Base SDKを"Latest macOS (macOS 10.12)"に変更。

C++ Standard Liraryの変更

ビルド時に発生する次の警告を回避するため、C++ Standard Liraryを変更する。

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
変更内容は次の通り。
Targets / MIDITrail / Build Settings / C++ Standard Library
変更前:Compiler Default
変更後:libc++ (LLVM C++ standard library with C++11 support)

Deployment Target

#37374 背景画像表示機能追加」対応のため、Scurity-Scoped Bookmarkを利用した。 Scurity-Scoped Bookmarkは、OS X 10.7.3(Lion)以降で利用可能であるため、 Deployment Targetを10.6から10.7に変更する。

2017-07-17 23:24 Updated by: yknk
Commentaire

廃止APIへの対応

OGLRenderer::Initialize

廃止されたAPIを置き換える。

変更前:NSView::convertRectToBase
変更後:NSView::convertRectToBacking

2017-07-17 23:24 Updated by: yknk
Commentaire

ヘッダ定義ミスの修正

MIDITrailAppDelegate.h

メソッド名称の定義ミスを修正。

----
変更前:applicationWillTerminate
変更後:applicationDidBecomeActive
----
変更前:applicationDidBecomeActive
変更後:applicationDidResignActive
----

MTMainView.h

実態のないメソッド定義を削除。

MTMainView::scene_OnMouseClick

2017-07-17 23:24 Updated by: yknk
  • Résolution Update from Aucun to Fixed
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2017-07-17 23:24
2017-07-24 01:05 Updated by: yknk
Commentaire

ビルド設定変更2

Deployment Target

ビルド時に発生する次の警告を回避するため、C++ Standard Liraryを変更した。

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
警告メッセージの内容に従い、Deployment Targetを10.7(Lion)から10.9(Mavericks)に変更した。 しかし、Deployment Targetを10.9(Mavericks)に変更したところ、 OpenGLのAPI(gluOrtho2D, gluPerspective, gluLookAt)が廃止されたという警告が 表示されるようになってしまった。この対策は非常に重いため、ビルド設定を再び見直した。

  • Deployment Target -> 10.7(Lion)
  • C++ Standard Library -> libstdc++ (GNU C++ standard library)

MIDITrailのサポート対象OSは、10.7(Lion)以降となる。 ビルド時に以下の警告が表示されるが、当面は無視する。

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9

Attachment File List

No attachments

Modifier

Please login to add comment to this ticket » Connexion