Android NDK build fails after adding FFmpeg with: error: cannot find -lnative - cmake

First of all, I'm fairly new to building native code on Android and C++ in general, so it's possible I am missing something very obvious to more seasonded developers...
I am working on an Android app that uses Oboe for audio processing. So far this has all been working, I set up the NDK, added a CMakeLists.txt, compiled my code and ran the app, all fine.
Now I tried to integrate FFmpeg into my project following the steps described in this article: Using FFmpeg for faster audio decoding. I compiled FFmpeg using the script provided there and moved the files to the mentioned folders. I made the changes to my CMakeList.txt to be able to use the compiled FFmpeg files, and the IDE sees everything just fine.
But my builds break with this error:
Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lnative
I've done some googleing and research on the issue but can't seem to figure it out. Not sure what exactly is missing here and where to get it...Any help is much appreciated!
Here's my CMakeList.txt
set(FFMPEG_DIR /volumes/work/repos/android/ffmpeg/build/${ANDROID_ABI})
include_directories(src/main/cpp/)
include_directories(native-lib ${FFMPEG_DIR}/include)
add_library(avformat SHARED IMPORTED)
set_target_properties(avformat PROPERTIES IMPORTED_LOCATION
${FFMPEG_DIR}/lib/libavformat.so)
add_library(avutil SHARED IMPORTED)
set_target_properties(avutil PROPERTIES IMPORTED_LOCATION
${FFMPEG_DIR}/lib/libavutil.so)
add_library(avcodec SHARED IMPORTED)
set_target_properties(avcodec PROPERTIES IMPORTED_LOCATION
${FFMPEG_DIR}/lib/libavcodec.so)
add_library(swresample SHARED IMPORTED)
set_target_properties(swresample PROPERTIES IMPORTED_LOCATION
${FFMPEG_DIR}/lib/libswresample.so)
add_library(native-lib
SHARED
src/main/cpp/native-lib.cpp
src/main/cpp/AudioEngine.cpp
src/main/cpp/DataSource.h
src/main/cpp/StorageDataSource.cpp
src/main/cpp/LockFreeQueue.h
src/main/cpp/logging.h
src/main/cpp/NDKExtractor.cpp
src/main/cpp/Constants.h
src/main/cpp/OpenGLFunctions.cpp
src/main/cpp/Player.cpp
src/main/cpp/Mixer.h
src/main/cpp/IRenderableAudio.h
src/main/cpp/UtilityFunctions.cpp
src/main/cpp/FFMpegExtractor.h
src/main/cpp/FFMpegExtractor.cpp
)
set(TARGET_LIBS log android oboe GLESv2)
set(TARGET_LIBS ${TARGET_LIBS} native avformat avutil avcodec swresample)
target_link_libraries(native-lib ${TARGET_LIBS})
#set(CMAKE_CXX_STANDARD 14)
# Set the path to the Oboe directory.
set(OBOE_DIR /Volumes/Work/Repos/Android/oboe-test/oboe)
# Add the Oboe library as a subdirectory.
add_subdirectory(${OBOE_DIR} ./oboe)
# Specify the path to the Oboe header files.
include_directories(${OBOE_DIR}/include)
And this is the end part of the native build task's log output (full log was too large to post):
Build native-lib_armeabi-v7a
(...)
[38/41] /Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DOBOE_ENABLE_LOGGING=1 -Dnative_lib_EXPORTS -I../../../../src/main/cpp -I../../../../native-lib -I/volumes/work/repos/android/ffmpeg/build/armeabi-v7a/include -I/Volumes/Work/Repos/Android/oboe-test/oboe/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++14 -frtti -fexceptions -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/Player.cpp.o -MF CMakeFiles/native-lib.dir/src/main/cpp/Player.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/Player.cpp.o -c /Volumes/Work/Repos/Android/MyApp/app/src/main/cpp/Player.cpp
[39/41] /Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DOBOE_ENABLE_LOGGING=1 -Dnative_lib_EXPORTS -I../../../../src/main/cpp -I../../../../native-lib -I/volumes/work/repos/android/ffmpeg/build/armeabi-v7a/include -I/Volumes/Work/Repos/Android/oboe-test/oboe/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++14 -frtti -fexceptions -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/UtilityFunctions.cpp.o -MF CMakeFiles/native-lib.dir/src/main/cpp/UtilityFunctions.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/UtilityFunctions.cpp.o -c /Volumes/Work/Repos/Android/MyApp/app/src/main/cpp/UtilityFunctions.cpp
[40/41] /Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -DOBOE_ENABLE_LOGGING=1 -Dnative_lib_EXPORTS -I../../../../src/main/cpp -I../../../../native-lib -I/volumes/work/repos/android/ffmpeg/build/armeabi-v7a/include -I/Volumes/Work/Repos/Android/oboe-test/oboe/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++14 -frtti -fexceptions -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/FFMpegExtractor.cpp.o -MF CMakeFiles/native-lib.dir/src/main/cpp/FFMpegExtractor.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/FFMpegExtractor.cpp.o -c /Volumes/Work/Repos/Android/MyApp/app/src/main/cpp/FFMpegExtractor.cpp
[41/41] : && /Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++14 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libnative-lib.so -o ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/AudioEngine.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/StorageDataSource.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/NDKExtractor.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/OpenGLFunctions.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/Player.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/UtilityFunctions.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/FFMpegExtractor.cpp.o -llog -landroid oboe/liboboe.a -lGLESv2 -lnative /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavformat.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavutil.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavcodec.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libswresample.so -llog -lOpenSLES -latomic -lm && :
FAILED: : && /Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ --target=armv7-none-linux-androideabi21 --gcc-toolchain=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64 --sysroot=/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++14 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libnative-lib.so -o ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/AudioEngine.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/StorageDataSource.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/NDKExtractor.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/OpenGLFunctions.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/Player.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/UtilityFunctions.cpp.o CMakeFiles/native-lib.dir/src/main/cpp/FFMpegExtractor.cpp.o -llog -landroid oboe/liboboe.a -lGLESv2 -lnative /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavformat.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavutil.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libavcodec.so /volumes/work/repos/android/ffmpeg/build/armeabi-v7a/lib/libswresample.so -llog -lOpenSLES -latomic -lm && :
/Users/myuserfolder/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lnative
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Related

CMake error: AR19DD~1.EXE: fatal error: cannot specify -o with -c, -S or -E with multiple files compilation terminated

I am trying to create an executable from a project consisting purely of C files.
When I try to create a library as in the following:
add_library(application)
target_sources(application PUBLIC main.c)
target_include_directories(application PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(application PUBLIC lib1 lib2 lib3)
The creation of library is sucessful. But what I need is an executable (.elf file to be more precise)
if I add something similar to the following:
add_executable(application.elf)
target_sources(application.elf PUBLIC main.c)
target_include_directories(application.elf PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(application.elf PUBLIC lib1 lib2 lib3)
I get the following error:
AR19DD~1.EXE: fatal error: cannot specify -o with -c, -S or -E with multiple files compilation terminated.
The following are my Compiler and linker flags :
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -x c -mthumb -D__SAM3X8E__ -DDEBUG -DBOARD=ARDUINO_DUE_X -Dscanf=iscanf -DARM_MATH_CM3=true -Dprintf=iprintf -D__SAM3X8E__ -fdata-sections -ffunction-sections -mlong-calls -g3 -Wall -mcpu=cortex-m3 -c -pipe -fno-strict-aliasing -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -std=gnu99 -ffunction-sections -fdata-sections -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wwrite-strings -Wsign-compare -Waggregate-return -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wnested-externs -Wlong-long -Wunreachable-code -Wcast-align --param max-inline-insns-single=500")
set(CMAKE_EXE_LINKER_FLAGS "-mthumb -Wl,--gc-sections -mcpu=cortex-m3 -Wl,--entry=Reset_Handler -Wl,-T\"../flash.ld\"")

ReactNative android Error: Timeout of 120000ms exceeded

I am getting error in ReactNative android while testing with detox. The error is, "Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves."
React-Native : 0.57.7
Detox test works fine with iOS without any issues but getting timeout error while running with Android. Not sure where should i check about this.
node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose --grep :ios: --invert --artifacts-location "artifacts/android.emu.debug.2019-04-10 10-27-45Z"
detox[30977] INFO: [DetoxServer.js] server listening on localhost:51629...
detox[30977] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:51629
detox[30977] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=c4ef8798-0ec8-3517-0a6f-56bb03181111
detox[30977] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=c4ef8798-0ec8-3517-0a6f-56bb03181111
detox[30977] DEBUG: [exec.js/EXEC_CMD, #0] /Users/iphone/Library/Android/sdk/emulator/emulator -list-avds --verbose
detox[30977] DEBUG: [exec.js/EXEC_CMD, #1] /Users/iphone/Library/Android/sdk/platform-tools/adb devices
detox[30977] DEBUG: [exec.js/EXEC_CMD, #2] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "getprop dev.bootcomplete"
detox[30977] DEBUG: [exec.js/EXEC_CMD, #3] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
detox[30977] DEBUG: [exec.js/EXEC_CMD, #4] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "dumpsys power | grep \"^[ ]*m[UW].*=\""
detox[30977] DEBUG: [exec.js/EXEC_CMD, #5] /Users/iphone/Library/Android/sdk/build-tools/28.0.3/aapt dump badging "/Users/iphone/Desktop/extra/reactnativegettingstarted/android/app/build/outputs/apk/debug/app-debug.apk" | grep -e "package: name="
detox[30977] DEBUG: [exec.js/EXEC_CMD, #6] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "pm list packages com.plugindemoapp"
detox[30977] DEBUG: [exec.js/EXEC_CMD, #7] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 uninstall com.plugindemoapp
detox[30977] DEBUG: [exec.js/EXEC_CMD, #8] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "pm list packages com.plugindemoapp.test"
detox[30977] DEBUG: [exec.js/EXEC_CMD, #9] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 uninstall com.plugindemoapp.test
detox[30977] DEBUG: [exec.js/EXEC_CMD, #10] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -r -g -t /Users/iphone/Desktop/extra/reactnativegettingstarted/android/app/build/outputs/apk/debug/app-debug.apk
detox[30977] DEBUG: [exec.js/EXEC_CMD, #11] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 install -r -g -t /Users/iphone/Desktop/extra/reactnativegettingstarted/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
detox[30977] DEBUG: [exec.js/EXEC_CMD, #12] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "pm list instrumentation"
detox[30977] DEBUG: [exec.js/SPAWN_CMD, #13] [pid=30994] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r "-e detoxServer ws://localhost:51629 -e detoxSessionId c4ef8798-0ec8-3517-0a6f-56bb03181111" -e debug false com.plugindemoapp.test/android.support.test.runner.AndroidJUnitRunner
detox[30977] DEBUG: [exec.js/EXEC_CMD, #14] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "ps | grep \"com\.plugindemoapp$\""
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #14] "/Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "ps | grep \"com\.plugindemoapp$\""" failed with code = 1, stdout and stderr:
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #14]
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #14]
detox[30977] DEBUG: [exec.js/EXEC_CMD, #15] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "ps | grep \"com\.plugindemoapp$\""
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #15] "/Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "ps | grep \"com\.plugindemoapp$\""" failed with code = 1, stdout and stderr:
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #15]
detox[30977] DEBUG: [exec.js/EXEC_FAIL, #15]
detox[30977] DEBUG: [exec.js/EXEC_CMD, #16] /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell "ps | grep \"com\.plugindemoapp$\""
detox[30977] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=c4ef8798-0ec8-3517-0a6f-56bb03181111)
detox[30977] DEBUG: [exec.js/KILL] sending SIGINT to [pid = 30994]: /Users/iphone/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am instrument -w -r -e detoxServer ws://localhost:51629 -e detoxSessionId c4ef8798-0ec8-3517-0a6f-56bb03181111 -e debug false com.plugindemoapp.test/android.support.test.runner.AndroidJUnitRunner
1) "before all" hook
0 passing (2m)
1 failing
1) "before all" hook:
Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
0 passing (2m)
1 failing
1) "before all" hook:
Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
detox[30977] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=c4ef8798-0ec8-3517-0a6f-56bb03181111
child_process.js:656
throw err;
^
Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration android.emu.debug --loglevel verbose --grep :ios: --invert --artifacts-location "artifacts/android.emu.debug.2019-04-10 10-27-45Z"
at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:653:13)
at runMocha (/Users/iphone/Desktop/extra/reactnativegettingstarted/node_modules/detox/local-cli/detox-test.js:143:6)
at run (/Users/iphone/Desktop/extra/reactnativegettingstarted/node_modules/detox/local-cli/detox-test.js:85:7)
at Object.<anonymous> (/Users/iphone/Desktop/extra/reactnativegettingstarted/node_modules/detox/local-cli/detox-test.js:233:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)

CMake does not properly insert CFBundleVersion and CFBundleShortVersionString to Info.plist

According to the documentation, CMake should use the values of MACOSX_BUNDLE_BUNDLE_VERSION and MACOSX_BUNDLE_SHORT_VERSION_STRING target properties to populate CFBundleVersion and CFBundleShortVersionString in the generated Info.plist.
Here is the example of CMakeLists.txt I have:
cmake_minimum_required(VERSION 3.12)
project (foo)
set(SOURCES foo.m)
set(HEADERS foo.h)
add_library(foo
SHARED
${SOURCES}
${HEADERS}
)
set_target_properties(foo PROPERTIES
OUTPUT_NAME Foo
FRAMEWORK TRUE
FRAMEWORK_VERSION A
MACOSX_FRAMEWORK_IDENTIFIER test.foo
MACOSX_BUNDLE_SHORT_VERSION_STRING 1.42.0
MACOSX_BUNDLE_BUNDLE_VERSION 1.42.0
MACOSX_RPATH TRUE
# "current version" in semantic format in Mach-O binary file
VERSION 1.42.0
# "compatibility version" in semantic format in Mach-O binary file
SOVERSION 1.42.0
PUBLIC_HEADER "${HEADERS}"
XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym"
)
And here is the contents of Foo.framework/Resources/Info.plist that CMake generates:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Foo</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>test.foo</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string></string>
<key>CFBundleShortVersionString</key>
<string></string>
<key>CSResourcesFileMapped</key>
<true/>
</dict>
</plist>
So, CFBundleIdentifier and CFBundleExecutable are properly replaced, but CFBundleVersion and CFBundleShortVersionString are not. What am I missing here?
You should use another set of options as documented here: https://cmake.org/cmake/help/v3.0/prop_tgt/MACOSX_FRAMEWORK_INFO_PLIST.html
that is
MACOSX_FRAMEWORK_SHORT_VERSION_STRING
MACOSX_FRAMEWORK_BUNDLE_VERSION
because in your case it's not a regular bundle, it's a framework (i.e. library in a bundle)

Dynamic Analysis with Clang - Suppressing Reports in External Libraries Ignored in a CMake project

I am trying to use -fsanitize=address feature in clang compiler, but I am interested in to see my local project errors only, so I will ignore the incoming error from 3rdparty libraries, specifically I have a project configured to ignore the errors who become from dbus.
My system:
cmake version 3.9.5
Linux hostname 4.14.0-2-amd64 #1 SMP Debian 4.14.7-1 (2017-12-22) x86_64 GNU/Linux
clang version 4.0.1-8 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
My mcve:
.
├── CMakeLists.txt
├── CTestConfig.cmake
├── CTestCustom.cmake
├── MyASan.supp
└── src
├── CMakeLists.txt
├── entityitem.cc
├── mainwindow.cc
├── mainwindow.h
└── mainwindow.ui
1 directory, 10 files
CMakeLists.txt:
cmake_minimum_required(VERSION 3.9.0 FATAL_ERROR)
project(SanitizerTest)
set(CMAKE_C_STANDARD 14)
set(CMAKE_CXX_STANDARD 14)
include(CTest)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)
CTestConfig.cmake:
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
##
## # The following are required to submit to the CDash dashboard:
## ENABLE_TESTING()
## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "Exampling")
set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "localhost:8090")
set(CTEST_DROP_LOCATION "/submit.php?project=Exampling")
set(CTEST_DROP_SITE_CDASH TRUE)
CTestCustom.cmake:
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
set(CTEST_MEMORYCHECK_TYPE "AddressSanitizer")
set(CTEST_SOURCE_DIRECTORY ${CTEST_SCRIPT_DIRECTORY})
set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ${CTEST_SOURCE_DIRECTORY}/MyASan.supp)
ctest_empty_binary_directory("${CTEST_BINARY_DIRECTORY}")
set(CTEST_MEMORYCHECK_TYPE "AddressSanitizer")
ctest_start(Experimental)
set(CONFIGURE_OPTIONS
"-DCMAKE_BUILD_TYPE=Debug"
"-DCMAKE_CXX_FLAGS=-g -O0 -fno-omit-frame-pointer -fsanitize=address"
"-DCMAKE_C_FLAGS=-g -O0 -fno-omit-frame-pointer -fsanitize=address"
"-DCMAKE_GENERATOR=Unix Makefiles"
"-DCMAKE_CXX_COMPILER=clang"
"-DCMAKE_C_COMPILER=clang"
)
ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}")
ctest_build()
MyASan.supp:
interceptor_via_lib:dbus-1
src/CMakeLists.txt:
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
add_library(module
${CMAKE_CURRENT_SOURCE_DIR}/mainwindow.cc)
target_include_directories(module INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/module_autogen/include>)
target_link_libraries(module
PUBLIC stdc++
PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets)
add_executable(main
${CMAKE_CURRENT_SOURCE_DIR}/entityitem.cc)
target_link_libraries(main module)
src/entityitem.cc:
#include <QtWidgets/QApplication>
#include <QtCore/QDebug>
#include "mainwindow.h"
int main(int argc, char *argv[]) {
QApplication a{argc, argv};
MainWindow d;
qDebug() << d.width();
return EXIT_SUCCESS;
}
src/mainwindow.cc:
#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
int *i{new int};
ui.setupUi(this);
}
src/mainwindow.h:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "ui_mainwindow.h"
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
private:
Ui::MainWindow ui;
};
#endif // MAINWINDOW_H
src/mainwindow.ui:
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralWidget"/>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>30</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
My problem, from the project root dir execute:
mkdir build
cd build
ctest -DCTEST_BINARY_DIRECTORY="." --verbose -S ../CTestCustom.cmake
./src/main
And then the output is:
=================================================================
==24262==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 6912 byte(s) in 27 object(s) allocated from:
#0 0x4d0810 (/home/adacosta/WORK/fffffffffff/Sanitazer/build/src/main+0x4d0810)
#1 0x7f75480378ed (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1d8ed)
Direct leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x4d0810 (/home/adacosta/WORK/fffffffffff/Sanitazer/build/src/main+0x4d0810)
#1 0x7f75529b1097 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x90097)
#2 0x50a80f (/home/adacosta/WORK/fffffffffff/Sanitazer/build/src/main+0x50a80f)
#3 0x7f7550369f29 (/lib/x86_64-linux-gnu/libc.so.6+0x20f29)
Indirect leak of 4239 byte(s) in 5 object(s) allocated from:
#0 0x4d0c35 (/home/adacosta/WORK/fffffffffff/Sanitazer/build/src/main+0x4d0c35)
#1 0x7f754545b47c (/lib/x86_64-linux-gnu/libdbus-1.so.3+0x3247c)
Indirect leak of 1824 byte(s) in 57 object(s) allocated from:
#0 0x4d0a18 (/home/adacosta/WORK/fffffffffff/Sanitazer/build/src/main+0x4d0a18)
#1 0x7f7548037fd8 (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1dfd8)
.
.
.
As you can see I have a "Indirect leak of" from dbus lib.
Solution:
Change the set(CTEST_MEMORYCHECK_TYPE "AddressSanitizer") to
set(CTEST_MEMORYCHECK_TYPE "LeakSanitizer").
Change the interceptor_via_lib:dbus-1 to leak:libdbus-1.
This will to send LSAN_OPTIONS instead of ASAN_OPTIONS to the process execution.
More info: https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions

Showing All Errors Only (null): Task failed with exit 1 signal 0 {

I'm using xcode 8.1 . Suddenly An error occured.
I didn't understand what will have to do if any one have figured out this then
Plz Help me.
Log as following
CopySwiftLibs /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app
cd "/Users/online/Documents/Indian Express"
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
builtin-swiftStdLibTool --copy --verbose --sign 0BB37D869CBEC02B92622A237B58F54DFE00B053 --scan-executable /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app/Indian\ Express --scan-folder /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app/Frameworks --scan-folder /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app/PlugIns --scan-folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/AdSupport.framework --scan-folder /Users/online/Documents/Indian\ Express/GoogleMobileAds.framework --scan-folder /Users/online/Documents/Indian\ Express/Bolts.framework --scan-folder /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk/System/Library/Frameworks/StoreKit.framework --scan-folder /Users/online/Documents/Indian\ Express/FBSDKShareKit.framework --scan-folder /Users/online/Documents/Indian\ Express/FBSDKCoreKit.framework --scan-folder /Users/online/Documents/Indian\ Express/FBSDKLoginKit.framework --platform iphoneos --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain --toolchain /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain --destination /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app/Frameworks --strip-bitcode --resource-destination /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian\ Express.app --resource-library libswiftRemoteMirror.dylib
Requested Swift ABI version based on scanned binaries: 4
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCore.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCoreGraphics.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreGraphics.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCoreGraphics.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCoreImage.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftCoreImage.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCoreImage.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftDarwin.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDarwin.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftDarwin.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftDispatch.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftDispatch.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftDispatch.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftFoundation.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftFoundation.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftFoundation.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftObjectiveC.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftObjectiveC.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftObjectiveC.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftQuartzCore.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftQuartzCore.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftQuartzCore.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftSwiftOnoneSupport.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftSwiftOnoneSupport.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftSwiftOnoneSupport.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftSwiftOnoneSupport.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftUIKit.dylib
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftUIKit.dylib' '-r' '-o' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftUIKit.dylib'
Copying /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/libswiftRemoteMirror.dylib to /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/libswiftRemoteMirror.dylib
Probing signature of /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign '-r-' '--display' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib'
/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib: code object is not signed at all
Codesigning /Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib
/usr/bin/codesign '--force' '--sign' '0BB37D869CBEC02B92622A237B58F54DFE00B053' '--verbose' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib'
0BB37D869CBEC02B92622A237B58F54DFE00B053: no identity found
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' '0BB37D869CBEC02B92622A237B58F54DFE00B053' '--verbose' '/Users/online/Library/Developer/Xcode/DerivedData/Indian_Express-elfbdjhonaqzmughbywmrbvlfces/Build/Products/Debug-iphoneos/Indian Express.app/Frameworks/libswiftCore.dylib'
}
Thanks A lot