Tuesday, August 23, 2022
HomeGame DevelopmentIOS construct Failed as a consequence of ---The goal system is: iOS...

IOS construct Failed as a consequence of —The goal system is: iOS – – The host system is: Darwin – 21.5.0 – x86_64 – Cocos Creator


04-07-2022 09:30-log: [cmake] – Configuring incomplete, errors occurred!
See additionally “/Customers/fci-675/tn_homecc_studentsapp/construct/ios/proj/CMakeFiles/CMakeOutput.log”.

04-07-2022 09:30-error: Error: Run construct plugin native:(onAfterBuild) failed!
at BuildTask.runPluginTask (/Functions/CocosCreator/Creator/3.4.2/CocosCreator.app/Contents/Assets/app.asar/builtin/builder/dist/employee/builder/index.ccc:1:7456)
at async BuildTask.construct (/Functions/CocosCreator/Creator/3.4.2/CocosCreator.app/Contents/Assets/app.asar/builtin/builder/dist/employee/builder/index.ccc:1:3580)
at async Ipc. (/Functions/CocosCreator/Creator/3.4.2/CocosCreator.app/Contents/Assets/app.asar/builtin/builder/dist/employee/index.ccc:1:3419)
04-07-2022 09:30-error: Error: run cmake failed “cmake -S /Customers/fci-675/tn_homecc_studentsapp/native/engine/ios -GXcode -B/Customers/fci-675/tn_homecc_studentsapp/construct/ios/proj -T buildsystem=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DRES_DIR=”/Customers/fci-675/tn_homecc_studentsapp/construct/ios””, code: 1, sign: null
at ChildProcess. (/Functions/CocosCreator/Creator/3.4.2/CocosCreator.app/Contents/Assets/app.asar/platforms/inner/native/dist/console/cocosCli.ccc:1:7489)
at ChildProcess.emit (occasions.js:315:20)
at maybeClose (inner/child_process.js:1048:16)
at Socket. (inner/child_process.js:439:11)
at Socket.emit (occasions.js:315:20)
at Pipe. (web.js:673:12)
04-07-2022 09:30-debug: Cease report console. {file(/Customers/fci-675/tn_homecc_studentsapp/temp/builder/log/ios03-07-2022 21-33.log)}


Did you remedy this drawback?

by no means its not letting me construct the undertaking from cocos solely

@htlxyz @Hugo @muxiandong @slackmoehrle @CocosMarketing
Guys, please assist me out on this matter, I’m not capable of construct in IOS in any respect its essential to me at this stage.
E-mail: pushkal@happyadda.com

Hello, might you please present the editor log when the construct fails?

Hello @zzf520 can we join or am i able to ship you the log file ??

IOS_build_logs.pdf (304.7 KB)

Okay, I’ll work with my engine colleagues on this.

image

The command order could also be incorrect or different error in that file.

cmake_minimum_required(VERSION 3.8)
set(CMAKE_SYSTEM_NAME iOS)
set(APP_NAME “Tiny Ninza” CACHE STRING “Venture Identify”)
undertaking(${APP_NAME} CXX)

embody(${CMAKE_CURRENT_LIST_DIR}/…/frequent/CMakeLists.txt)

set(LIB_NAME ${APP_NAME}-mobile)

set(UI_RESOURCES)
set(PROJ_SOURCES)
set(PROJ_COMMON_SOURCES
${CMAKE_CURRENT_LIST_DIR}/…/frequent/Courses/Recreation.h
${CMAKE_CURRENT_LIST_DIR}/…/frequent/Courses/Recreation.cppx
)
if (USE_PORTRAIT)
configure_file(${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackgroundPortrait.png ${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png COPYONLY)
else()
configure_file(${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackgroundLandscape.png ${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png COPYONLY)
endif()

set(UI_RESOURCES
${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png
${CMAKE_CURRENT_LIST_DIR}/Pictures.xcassets
${CMAKE_CURRENT_LIST_DIR}/Base.lproj/Localizable.strings
${CMAKE_CURRENT_LIST_DIR}/Base.lproj/LaunchScreen.storyboard
)

if(EXISTS ${RES_DIR}/proj/service.cmake)
set(SERVICE_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR})
embody(${RES_DIR}/proj/service.cmake)
endif()

checklist(APPEND PROJ_SOURCES
${CMAKE_CURRENT_LIST_DIR}/AppDelegate.mm
${CMAKE_CURRENT_LIST_DIR}/AppDelegate.h
${CMAKE_CURRENT_LIST_DIR}/service/SDKWrapper.m
${CMAKE_CURRENT_LIST_DIR}/service/SDKWrapper.h
${CMAKE_CURRENT_LIST_DIR}/primary.m
${CMAKE_CURRENT_LIST_DIR}/ViewController.mm
${CMAKE_CURRENT_LIST_DIR}/ViewController.h
${UI_RESOURCES}
)
if(NOT CUSTOM_COPY_RESOURCE_HOOK)
include_resources(${RES_DIR}/belongings)
endif()

add_executable(${LIB_NAME} ${PROJ_SOURCES} ${ASSET_FILES} ${PROJ_COMMON_SOURCES})
source_group(TREE ${RES_DIR}/belongings PREFIX “Assets” FILES ${ASSET_FILES})
source_group(TREE ${CMAKE_CURRENT_LIST_DIR} PREFIX “Supply Recordsdata” FILES ${PROJ_SOURCES})
source_group(TREE ${CMAKE_CURRENT_LIST_DIR}/…/frequent PREFIX “Supply Recordsdata” FILES ${PROJ_COMMON_SOURCES})

if(COMMAND service_insert_library)
service_insert_library()
endif()

target_link_libraries(${LIB_NAME} cocos2d)
target_include_directories(${LIB_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/…/frequent/Courses
${CMAKE_CURRENT_LIST_DIR}/service
)

set(EXECUTABLE_NAME ${LIB_NAME}) # referenced in Data.plist
set(PRODUCT_NAME ${APP_NAME})

set_target_properties(${LIB_NAME} PROPERTIES
MACOSX_BUNDLE_INFO_PLIST “${CMAKE_CURRENT_LIST_DIR}/Data.plist”
MACOSX_BUNDLE 1
RESOURCE “${UI_RESOURCES}”
OSX_ARCHITECTURES “arm64;x86_64”
MACOSX_DEPLOYMENT_TARGET ${TARGET_IOS_VERSION}
XCODE_ATTRIBUTE_DEVELOPMENT_TEAM “${DEVELOPMENT_TEAM}”
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY “iPhone Developer”
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME “AppIcon”
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_LAUNCHSTORYBOARD_NAME “LaunchScreen”
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${TARGET_IOS_VERSION}
XCODE_ATTRIBUTE_ENABLE_BITCODE NO
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH YES
IOS_INSTALL_COMBINED YES
XCODE_ATTRIBUTE_SKIP_INSTALL NO
XCODE_ATTRIBUTE_INSTALL_PATH “$(LOCAL_APPS_DIR)”
)

Please refer this if this helps…

hello @PatriceJiang i shared a cmakelist.txt file

hello @zzf520 i’ve shared the cmakelist.txt file as effectively please present the answer if you happen to can ?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments