Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS app missing dependencies //build/toolchain/ios:ios_x64 #9559

Closed
rollyceballos opened this issue Sep 9, 2021 · 1 comment
Closed

iOS app missing dependencies //build/toolchain/ios:ios_x64 #9559

rollyceballos opened this issue Sep 9, 2021 · 1 comment

Comments

@rollyceballos
Copy link

rollyceballos commented Sep 9, 2021

Problem

I've cloned the repo, setup ninja, gn, openssl and pkg-info but still stuck with Xcode not finishing the chip_xcode_build_connector.sh script

I'm getting an Error Unresolved dependencies looking for //build/toolchain/ios:ios_x64 and can't figure out what that is. I've seen various issues reported with the iOS project but all other workarounds/solutions doesn't work so maybe this is a recent bug or I completely missed a step in the CHIP setup guide?

+ mkdir -p /Users/someuser/Library/Developer/Xcode/DerivedData/Darwin-fjaqranellsxxnfsmhjpezwgeroc/Build/Intermediates.noindex/CHIP.build/Debug-iphonesimulator/CHIP.build
+ export
+ defines=()
+ declare -a defines
+ read -r -a defines
+ declare target_defines=
+ for define in '"${defines[@]}"'
+ case "$define" in
+ target_defines+=',"CHIP_PROJECT_CONFIG_INCLUDE=<CHIPProjectConfig.h>"'
+ for define in '"${defines[@]}"'
+ case "$define" in
+ target_defines+=',"CHIP_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPPlatformConfig.h>"'
+ for define in '"${defines[@]}"'
+ case "$define" in
+ target_defines+=',"CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPDevicePlatformConfig.h>"'
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ continue
+ for define in '"${defines[@]}"'
+ case "$define" in
+ target_defines+=',"DEBUG=1"'
+ target_defines='["CHIP_PROJECT_CONFIG_INCLUDE=<CHIPProjectConfig.h>","CHIP_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPPlatformConfig.h>","CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPDevicePlatformConfig.h>","DEBUG=1"]'
+ declare target_cpu=
+ case $PLATFORM_PREFERRED_ARCH in
+ target_cpu=x64
+ declare 'target_cflags="-target","x86_64-apple-ios13.4"'
+ read -r -a archs
+ for arch in '"${archs[@]}"'
+ target_cflags+=',"-arch","x86_64"'
+ [[ NO == YES ]]
+ args=('default_configs_cosmetic=[]' 'chip_crypto="mbedtls"' 'chip_build_tools=false' 'chip_build_tests=false' 'chip_ble_project_config_include=""' 'chip_device_project_config_include=""' 'chip_inet_project_config_include=""' 'chip_system_project_config_include=""' 'target_cpu="'"$target_cpu"'"' 'target_defines='"$target_defines" 'target_cflags=['"$target_cflags"']')
+ declare -a args
+ [[ Debug != Debug* ]]
+ [[ iOS != macOS ]]
+ args+=('target_os="ios"' 'import("//config/ios/args.gni")')
+ [[ iOS == macOS ]]
+ cd /Users/someuser/proj_source/connectedhomeip
++ find_in_ancestors chip_xcode_build_connector_env.sh
+ ENV=
+ [[ -n '' ]]
+ git submodule update --init
+ [[ -z '' ]]
+ env -i PW_ENVSETUP_NO_BANNER=1 PW_ENVSETUP_QUIET=1 bash -c '. scripts/activate.sh'
20210909 12:26:35 INF Environment passes all checks!
+ set +ex
20210909 12:26:36 INF Environment passes all checks!
+ cd /Users/someuser/Library/Developer/Xcode/DerivedData/Darwin-fjaqranellsxxnfsmhjpezwgeroc/Build/Intermediates.noindex/CHIP.build/Debug-iphonesimulator/CHIP.build
+ gn --root=/Users/someuser/proj_source/connectedhomeip gen --check out '--args=default_configs_cosmetic=[] chip_crypto="mbedtls" chip_build_tools=false chip_build_tests=false chip_ble_project_config_include="" chip_device_project_config_include="" chip_inet_project_config_include="" chip_system_project_config_include="" target_cpu="x64" target_defines=["CHIP_PROJECT_CONFIG_INCLUDE=<CHIPProjectConfig.h>","CHIP_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPPlatformConfig.h>","CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE=<platform/Darwin/CHIPDevicePlatformConfig.h>","DEBUG=1"] target_cflags=["-target","x86_64-apple-ios13.4","-arch","x86_64"] target_os="ios" import("//config/ios/args.gni")'
ERROR Unresolved dependencies.
//:check(//build/toolchain/ios:ios_x64)
  needs //build/toolchain/ios:ios_x64()
//:default(//build/toolchain/ios:ios_x64)
  needs //build/toolchain/ios:ios_x64()

Proposed Solution

Add missing setup guide if any?

@rollyceballos
Copy link
Author

rollyceballos commented Sep 10, 2021

I figured this one out as actually running the app on an iPhone instead of just building it against a simulator. I should have figured as this was more of device integration I should have thought of it this way. It may help if there's a mention in any of the documents to run the iOS app against an actual device or build it to an arm64 target instead of the simulator so it's quick for anyone starting on this project.

fengli pushed a commit to fengli/connectedhomeip that referenced this issue Nov 3, 2021
fengli pushed a commit to fengli/connectedhomeip that referenced this issue Nov 4, 2021
woody-apple pushed a commit that referenced this issue Nov 5, 2021
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this issue Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants