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/inside/native/dist/console/cocosCli.ccc:1:7489)
at ChildProcess.emit (occasions.js:315:20)
at maybeClose (inside/child_process.js:1048:16)
at Socket. (inside/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 document console. {file(/Customers/fci-675/tn_homecc_studentsapp/temp/builder/log/ios03-07-2022 21-33.log)}
Did you remedy this drawback?
under no circumstances its not letting me construct the mission from cocos solely
@htlxyz @Hugo @muxiandong @slackmoehrle @CocosMarketing
Guys, please assist me out on this matter, I’m not in a position to construct in IOS in any respect its necessary to me at this stage.
E-mail: pushkal@happyadda.com
Hello, may 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.
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 “Undertaking Identify”)
mission(${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/Sport.h
${CMAKE_CURRENT_LIST_DIR}/…/frequent/Courses/Sport.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}/Photos.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()
listing(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}/important.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}/property)
endif()
add_executable(${LIB_NAME} ${PROJ_SOURCES} ${ASSET_FILES} ${PROJ_COMMON_SOURCES})
source_group(TREE ${RES_DIR}/property PREFIX “Assets” FILES ${ASSET_FILES})
source_group(TREE ${CMAKE_CURRENT_LIST_DIR} PREFIX “Supply Information” FILES ${PROJ_SOURCES})
source_group(TREE ${CMAKE_CURRENT_LIST_DIR}/…/frequent PREFIX “Supply Information” 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 properly please present the answer in case you can ?