菜单

错误码及FAQ

错误码及FAQ

TopOn Unity SDK的错误码及FAQ指引请参考:

系统平台说明
TopOn Android SDK查看
TopOn iOS SDK查看


问:编译报错“call to undeclared function 'typeof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]”具体如图所示

文章图片

答:由于C++版本的问题导致了,Build Settings -> Apple Clang - Language -> C Language Dialect -> 修改为c11,如果所示。

文章图片


问:Unity导出来后,打包遇到了 Missing signing identifier at "xxxxxx/Frameworks/libswiftCore.dylib",怎么解决。

文章图片

答:按下面步骤进行操作

  1. 选择 Unity-iPhone 项目
  2. 选择 UnityFramework 这个 Target
  3. 点击选择 Build Settings
  4. 在搜索框输入 swift
  5. 设置 "Always Embed Swift Standard Libraries" 选项为  "No"

提示:是更改 UnityFramework 这个 Target,而不是 Unity-iPhone 这个 Target


问:遇到错误“Invalid Bundle. The bundle at 'Marooned.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.”

答:在Build Phases下新增Run Script,并添加以下代码:

cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Frameworks/UnityFramework.framework/" 
if [[ -d "Frameworks" ]]; then 


最近修改: 2025-05-30Powered by