dyld: F_ADDFILESIGS failed for .... with errno=1 - objective-c

I have created a C++ dynamic library using Xcode. When I try to load this dynamic library in my app, I am getting the following error:
dyld: F_ADDFILESIGS failed for TestApp.app/DylibTest.dylib with
errno=1
What do i need to do in order to resolve this issue?

Related

Error: package or namespace load failed for ‘ncappc’

While attempting to load the ncappc library, I am receiving the following error -
library(ncappc)
Error: package or namespace load failed for ‘ncappc’:
.onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Cairo/libs/Cairo.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Cairo/libs/Cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/Cairo/libs/Cairo.so
Reason: image not found
I have uninstalled ncappc, as well as Cairo, but am still receiving the same error message.
Any help would be greatly appreciated.

How to use qt-gstreamer with qtquick2videosink on Qt5 on Raspberry Pi3

I built qt-gstreamer from source code on GitHub (version 1.2.0). Then I tried to run qmlplayer2 application (built from qt-gstreamer and use qtquick2videosink) on qt5 on Raspberry Pi3 but I got the following error at runtime:
(gst-plugin-scanner:3749): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstqt5videosink.so':
/usr/lib/gstreamer-0.10/libgstqt5videosink.so: undefined symbol:
_Z33gst_qt_quick2_video_sink_get_typev Failed to create qtquick2videosink. Make sure it is installed correctly
(qmlplayer2:8517): GStreamer-CRITICAL **: gst_bin_add: assertion
'GST_IS_ELEMENT (element)' failed
(qmlplayer2:8517): GStreamer-CRITICAL **:
gst_element_link_pads_filtered: assertion 'GST_IS_ELEMENT (dest)'
failed
Look at source code of qt-gstreamer, i found that the function gst_qt_quick2_video_sink_get_type() is implemented in gstqtquick2videosink.cpp but this file was not compiled due to missing configuration in cmake related to OpenGL.
I config cmake as below :
then rebuild and deploy new file libgstqt5videosink.so to /usr/lib/gstreamer-0.10/libgstqt5videosink.so on target device. After that qmlplayer2 application work fine.

Native linking failed. Please review the build log in Xamarin.iOS Cross platform

I am trying to rebuild my xamarin.iOS project in release mode and i am getting following Errors:
linker command failed with exit code 1 (use -v to see invocation).
error MT5209: Error: warning: ignoring file /Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/obj/iPhone/Release/mtouch-cache/BEMCheckBox.framework/BEMCheckBox, missing required architecture armv7s in file /Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/obj/iPhone/Release/mtouch-cache/BEMCheckBox.framework/BEMCheckBox (4 slices) (MobileApp.iOS) Native linking
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: BEMCheckBox. The symbol '_OBJC_CLASS_$_BEMCheckBox' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (MobileApp.iOS)
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: BEMCheckBoxGroup. The symbol '_OBJC_CLASS_$_BEMCheckBoxGroup' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (MobileApp.iOS)
/Users/admin/Desktop/1DMAPP/MobileApp/MobileApp/MobileApp.iOS/MTOUCH: Error MT5202: Native linking failed. Please review the build log. (MT5202) (MobileApp.iOS)
I am using the latest and stable version of packages.
My Link Behavior is "Don't Link"
My project supports all architectures
I want to build and release my iOS app. Native linking error is not allowing me to do this.

React native build getting failed :app:transformClassesWithDexForDebug

I am getting error while building react-native app using command react-native run-android
Error
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzav;
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzav;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
:app:transformClassesWithDexForDebug FAILED
Failure
Build failed with an exception.
What went wrong
Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
Dependencies in android/app/build.gradle
delete android/app/build dir
This work for me.
As mentionned on this comment, you have to compile everything yourself. Add this in your android/app/build.gradle.
I don't know if you have the exact same problem, but everytime I ran in dex problems, this was the solution.
compile "com.google.android.gms:play-services-base:11.4.2"
compile "com.google.android.gms:play-services-base-license:11.4.2"
compile "com.google.android.gms:play-services-ads:11.4.2"
compile "com.google.android.gms:play-services-ads-lite:11.4.2"
compile "com.google.android.gms:play-services-ads-license:11.4.2"
compile "com.google.android.gms:play-services-analytics:11.4.2"
compile "com.google.android.gms:play-services-analytics-impl:11.4.2"
compile "com.google.android.gms:play-services-auth:11.4.2"
compile "com.google.android.gms:play-services-auth-base:11.4.2"
compile "com.google.android.gms:play-services-fitness:11.4.2"
compile "com.google.android.gms:play-services-gcm:11.4.2"
compile "com.google.android.gms:play-services-identity:11.4.2"
compile "com.google.android.gms:play-services-maps:11.4.2"
compile "com.google.android.gms:play-services-wallet:11.4.2"

Build Failed Error in Titanium iOS project

I am using Titanium 3.1.3 GA version.
While include mobile app tracking module in project, getting "Build Failed" Error message.
Tried with new project also getting the same error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphonesimulator/MoibleAppTrackingSample.app/MoibleAppTrackingSample normal i386
[ERROR] : (1 failure)
Please let me know about the issue and how could i fix this.
i386 means you were running on IOS, if yes then please paste the whole log here, so that we can figure it out actually. Because there may be many issue like sdk problem and all. i386 architecture is used for simulators.
Go in finder where this project is and then click BUILD/iphone/ then click on Xcode project. And from there try to build.
Are there any more details about in the log?
What module did you use? did you download it from the MarketPlace?
Try doing a Clean Project and try again.