投稿

10月, 2017の投稿を表示しています

Validation出来ない症状

イメージ
Xcode 9にしてから何かと不便が多い。 今度はアプリをAppleに送る前のValidationが出来ない症状になった。Uploadも無理。 No accounts with iTunes Connect access have been found for アカウント名(チーム名?) iTunes Connect access is required for Apple Store distribution. No iTunes Connect access for the team. 少し古いプロジェクトは大丈夫だったのにちょっとソースを変更したらいきなりこの症状である。 対策(と言えるのか?) 大丈夫だったプロジェクトでvalidationを行うとうまくいった。 その後、問題のあるプロジェクトでvalidationを行うと今度はうまくいった。

Xcode 9でInstrumentsが実行できない不具合

イメージ
Xcode 9からの不具合なのかInstrumentsが実行できない状態になりました。 録画ボタンのような赤丸をクリックして開始しようとすると Permission to debug xxx.xxxx.xxx was denied. と表示されて開始しません。 以下の作業をしたら治りました。XcodeのPreferenceで - Preference -> Locations -> Command Line ToolsをXcode 8.3.3に切り替え - Instruments立ち上げ - エラーが出る - Preference -> Locations -> Command Line ToolsをXcode 9.0.1に切り替え 追記 別のプロジェクトで引き続き不具合が出るので治っていませんでした。

iOSで使えるフォント UIFontのfontName一覧 iOS11版

参考記事 Over&Out その後 UIFontのfontName一覧 これのiOS11版を行います。 今回はSwiftで書きました。 //Swift 4.0 let familyNames = UIFont.familyNames for aFamilyName in familyNames.sorted() { print(aFamilyName) for aFontName in UIFont.fontNames(forFamilyName: aFamilyName) { print("--", aFontName) } } ちなみに下はフォントの使用例です。 let myFont = UIFont(name: "AcademyEngravedLetPlain", size: 24) 結果 Academy Engraved LET -- AcademyEngravedLetPlain Al Nile -- AlNile -- AlNile-Bold American Typewriter -- AmericanTypewriter-CondensedBold -- AmericanTypewriter-Condensed -- AmericanTypewriter-CondensedLight -- AmericanTypewriter -- AmericanTypewriter-Bold -- AmericanTypewriter-Semibold -- AmericanTypewriter-Light Apple Color Emoji -- AppleColorEmoji Apple SD Gothic Neo -- AppleSDGothicNeo-Thin -- AppleSDGothicNeo-Light -- AppleSDGothicNeo-Regular -- AppleSDGothicNeo-Bold -- AppleSDGothicNeo-SemiBold -- AppleSDGothicNeo-UltraLight -- AppleSDGothicNeo-Medium Arial --