BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
106 stars 81 forks source link

iOS SDK Build failed #114

Open ilhamchp opened 3 years ago

ilhamchp commented 3 years ago

`PhaseScriptExecution Generate\ /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/WORK/ios-arm64/Stamp/EP_matroska2/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/EP_matroska2-configure /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/ios-arm64/Project.build/RelWithDebInfo-iphoneos/EP_matroska2.build/Script-5AD77F248F464CC6BF7C9690.sh (in target 'EP_matroska2' from project 'Project') cd /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/cmake-builder /bin/sh -c /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/ios-arm64/Project.build/RelWithDebInfo-iphoneos/EP_matroska2.build/Script-5AD77F248F464CC6BF7C9690.sh loading initial cache file /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/WORK/ios-arm64//tmp/EP_matroska2/EP_matroska2-cache-RelWithDebInfo.cmake CMake Warning (dev) at /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/WORK/ios-arm64/tmp/EP_matroska2/EP_matroska2-cache-RelWithDebInfo.cmake:8 (set): implicitly converting 'LIST' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/WORK/ios-arm64/tmp/EP_matroska2/EP_matroska2-cache-RelWithDebInfo.cmake:15 (set): implicitly converting 'LIST' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /Users/acsmacbookpro/documents/Cahya/SDK/linphone-sdk/build/WORK/ios-arm64/tmp/EP_matroska2/EP_matroska2-cache-RelWithDebInfo.cmake:25 (set): implicitly converting 'LIST' to 'STRING' type. This warning is for project developers. Use -Wno-dev to suppress it.

-- Using sysroot path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -- Using sdk version: 14.4 -- Using sysroot path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -- Using sdk version: 14.4

BUILD INTERRUPTED

warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures (in target 'sdk' from project 'linphone-sdk') warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures (in target 'lipo' from project 'linphone-sdk') warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures (in target 'ALL_BUILD' from project 'linphone-sdk') warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures (in target 'ios-x86_64' from project 'linphone-sdk') warning: ONLY_ACTIVE_ARCH=YES requested with multiple ARCHS and no run destination to provide an active architecture; building for all applicable architectures (in target 'ios-armv7' from project 'linphone-sdk') BUILD FAILED

The following build commands failed: PhaseScriptExecution Generate\ ios-armv7-prefix/src/ios-armv7 stamp/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/ios-armv7-build /Users/acsmacbookpro/documents/Cahya/SDK/lin `

Anyone know how to fix this? I haven't found any clue whats wrong with this.

my build command :

% cmake .. -G Xcode -DLINPHONESDK_PLATFORM=IOS
% cmake --build . --config RelWithDebInfo --parallel 6

XCode version : 12.4 iOS SDK version : 14.4

KyronNextLevel commented 2 years ago

Hello @ilhamchp. By default, the XCode builder seems builds for all architectures. If you don't need all architectures (since your issue seems to be linked with armv7 target), you can specify the architecture you need with -DLINPHONESDK_IOS_ARCHS="[arch]".

On our side (Belledonne aka Linphone), this builds on our CI suite.