0
1

More than 3 years have passed since last update.

cocos2d-x-3.17.2をios(Xcode)で実行時につまずくこと(CFBundleShortVersionString,CFBundleShortVersionString)

Posted at

参考記事

https://qiita.com/nekomimimi/items/fe47be63e53316b9e93c
https://qiita.com/mrkmyki/items/9679e162f5fcf7361478

初回のHello Worldの実行

初回のHello Worldプロジェクトを実行しようとしたところ以下の2点でつまづいたのでまとめます。

error : Argument value 10880 is outside the valid range [0, 255]

エラーの起きるファイルの42行目あたり

#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x))

これを以下に変更

#define BT_SHUFFLE(x, y, z, w) (((w) << 6 | (z) << 4 | (y) << 2 | (x)) & 0xff)

ビルド後のThe application's Info.plist does not contain CFBundleShortVersionString.

iosフォルダのInfo.plistを開くと

    <key>CFBundleShortVersionString</key>
    <string></string>

となっているので

    <key>CFBundleShortVersionString</key>
    <string>$(MARKETING_VERSION)</string>

としたらTARGETSのtest-mobileを選択肢Marketing Versionが空欄になっていると思うので1.0.0を入力する。

スクリーンショット 2020-07-03 17.31.19.png

これで動いた。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1