1

xcode 4.6.2 プロジェクトからこのコンパイル エラーが発生しました。そのうちの 2 つでテストしましたが、常に同じ場所で停止します。両方のコードでこれらのエラーを認識しません。私は何をすべきか?

私は両方のプロジェクトで適切なビルドを行いました。ここにログがあります。エラーを特定するのに役立つものはありますか?

ジンフェ アップル $ アポータブル ビルド

Building with TARGET_ARCH_ABI:armeabi ARM_NEON:False
Building to /Users/apple/.apportable/SDK/Build/android-armeabi-debug
Loading configuration.
Finished parsing configuration.
Traceback (most recent call last):
  File "/Users/apple/.apportable/SDK/bin/apportable", line 739, in <module>
    run(env)
  File "/Users/apple/.apportable/SDK/bin/apportable", line 705, in run
    results = actions[args.action](env)
  File "/Users/apple/.apportable/SDK/bin/apportable", line 77, in BuildAction
    site_init.BuildApplication(env, env['BUILD_TARGET'])
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 359, in BuildApplication
    return build.App(env, app_sconscript)
  File "/Users/apple/.apportable/SDK/site_scons/build/__init__.py", line 628, in App
    results = env.BuildApp(sources=sources, header_paths=headers, defines=defines, flags=flags, config=configs, deps=deps, libs=libs, java_libs=java_libs, assets=assets, pch=pchs, modules=modules, java_sources=java_sources, java_sourcepaths=java_sourcepaths, java_res_dirs=java_res_dirs)
  File "/Users/apple/.apportable/SDK/lib/scons/engine/SCons/Environment.py", line 223, in __call__
    return self.method(*nargs, **kwargs)
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 997, in BuildApp
    lib = BuildLibrary(env, env['XCODEBUILD_TARGET'], sources=sources, header_paths=header_paths, static=True, defines=defines, flags=flags, deps=deps, libs=libs, pch=pch, app=True, java_libs=java_libs)
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 632, in BuildLibrary
    build.headermap.dump(f, path['hmap'])
  File "/Users/apple/.apportable/SDK/site_scons/build/headermap.py", line 194, in dump
    string_table.write(s + '\0')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-18: ordinal not in range(128)

-- これが 2 番目のログです

CityWar apple$ apportable build
Building with TARGET_ARCH_ABI:armeabi ARM_NEON:False
Building to /Users/apple/.apportable/SDK/Build/android-armeabi-debug
Loading configuration.
Finished parsing configuration.
Traceback (most recent call last):
  File "/Users/apple/.apportable/SDK/bin/apportable", line 739, in <module>
    run(env)
  File "/Users/apple/.apportable/SDK/bin/apportable", line 705, in run
    results = actions[args.action](env)
  File "/Users/apple/.apportable/SDK/bin/apportable", line 77, in BuildAction
    site_init.BuildApplication(env, env['BUILD_TARGET'])
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 359, in BuildApplication
    return build.App(env, app_sconscript)
  File "/Users/apple/.apportable/SDK/site_scons/build/__init__.py", line 628, in App
    results = env.BuildApp(sources=sources, header_paths=headers, defines=defines, flags=flags, config=configs, deps=deps, libs=libs, java_libs=java_libs, assets=assets, pch=pchs, modules=modules, java_sources=java_sources, java_sourcepaths=java_sourcepaths, java_res_dirs=java_res_dirs)
  File "/Users/apple/.apportable/SDK/lib/scons/engine/SCons/Environment.py", line 223, in __call__
    return self.method(*nargs, **kwargs)
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 997, in BuildApp
    lib = BuildLibrary(env, env['XCODEBUILD_TARGET'], sources=sources, header_paths=header_paths, static=True, defines=defines, flags=flags, deps=deps, libs=libs, pch=pch, app=True, java_libs=java_libs)
  File "/Users/apple/.apportable/SDK/site_scons/site_init.py", line 632, in BuildLibrary
    build.headermap.dump(f, path['hmap'])
  File "/Users/apple/.apportable/SDK/site_scons/build/headermap.py", line 194, in dump
    string_table.write(s + '\0')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 33-36: ordinal not in range(128)
4

1 に答える 1

1

ヘッダー ファイルに非 ASCII 文字が含まれていると思われます。分析するには、次のように $HOME/.apportable/SDK/site_scons/build/headermap.py にログを追加します。

     for s in string_tbl:
+        print 'header is ' + s
         string_pos[s] = string_table.tell()
         string_table.write(s + '\0')
于 2013-07-24T16:19:09.793 に答える