dylib

Private module map for a framework

限于喜欢 提交于 2019-12-02 17:39:26
I'm using this answer to create a module map to create a module for CommonCrypto so I can use it in a framework. Doing this however means that any projects that I use this framework in have access to CommonCrypto with import CommonCrypto - and even worse, declaring CommonCrypto in another framework and importing this into the project results in Redefinition of module 'CommonCrypto' errors. I.e. the following setup: MainProject |--> import FrameworkA - module map for CommonCrypto |--> import FrameworkB - module map for CommonCrypto Is there a way to create a module map but have it private to

How do I create a working framework with dylib files in Xcode 4

≯℡__Kan透↙ 提交于 2019-12-02 15:58:10
I have created a new cocoa framework in Xcode, removed all the libraries and files it includes at the beginning except the supporting files. I have 2 files: add.h #ifndef add_add_h #define add_add_h void add(void); #endif and add.c #include <stdio.h> #include "add.h" void add(void) { printf("adfding"); } in build phases I add add.c to compile sources and add.h to compile headers public. The project build without a problem but in the framework there is no dylib file and when I drag and drop the framework to another project it says that dylib file could not be found. dyld: Library not loaded:

Calling dylib functions in Office for Mac VBA

拜拜、爱过 提交于 2019-12-02 07:11:02
问题 I am attempting to call a simple function that is stored in a simple dylib file, from a simple Word for Mac macro, I'm creating the .dylib with Xcode5 on OS-X Mountain Lion, and calling it from Word for Mac 2011. first the libWord.dylib: Test.h #ifndef __Word__Test__ #define __Word__Test__ bool testFunc(); #endif Test.cpp #include "Test.h" bool testFunc(){ return true; } and the macro: Word Macro Private Declare Function testFunc Lib "/Users/usrName/Documents/libWord.dylib" () As Boolean Sub

Calling dylib functions in Office for Mac VBA

你离开我真会死。 提交于 2019-12-02 05:29:10
I am attempting to call a simple function that is stored in a simple dylib file, from a simple Word for Mac macro, I'm creating the .dylib with Xcode5 on OS-X Mountain Lion, and calling it from Word for Mac 2011. first the libWord.dylib: Test.h #ifndef __Word__Test__ #define __Word__Test__ bool testFunc(); #endif Test.cpp #include "Test.h" bool testFunc(){ return true; } and the macro: Word Macro Private Declare Function testFunc Lib "/Users/usrName/Documents/libWord.dylib" () As Boolean Sub TestLibFunc() Dim b As Boolean b = testFunc StatusBar = b End Sub The Macro can find the dylib (which I

What does this Swift iPad crash log mean? [duplicate]

雨燕双飞 提交于 2019-12-02 05:01:56
问题 This question already has an answer here : `save(to:for:completionHandler:)` of `UIDocument` crashes (1 answer) Closed 2 years ago . App runs fine on every device that qualifies for deployment target of 9.3+ except iPad2. The url is good. Works on every iPhone and every other iPad. The crash is on a physical iPad2 and Simulator iPad2 iOS 9.3. doc.save(to: target, for: .forCreating, completionHandler: {(success) in if (success) { print("Save succeeded") } } else { print("Save failed") } })

Mac Office 2011 VBA and Dylib

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 04:32:38
I'm working on a Word 2011 plugin in Mac OS. Currently, I need to write a code in VBA Macro to retrieve a String from another application (through Socket communication). So, basically in Windows, I can simply make a DLL which help me to do Socket communication with the other application and return the String value to VBA Macro. However, in Mac, I'm able to build a .dylib (in C) and using VBA to communicate with the dylib. However, I'm having a trouble with the return String. My simple C code is something like: char * tcpconnect(char* arguments) {} First, it always contains Chr(0) characters.

Linking Dylibs in Kexts?

て烟熏妆下的殇ゞ 提交于 2019-12-02 03:36:53
问题 I've written a kext for OS X that implements a USB-based framebuffer using (IOKit) libusb and jpeglib. Both of those are dylibs, and for some reason they won't link properly in XCode, and the OS won't resolve the dependencies when it attempts to load the kext. The background of this whole thing is that Samsung makes an LCD picture frame that can act as a second monitor; the only problem is that it's not DisplayLink or any other known protocol -- the Windows-only driver spits out a custom

Linking Dylibs in Kexts?

烂漫一生 提交于 2019-12-02 03:35:16
I've written a kext for OS X that implements a USB-based framebuffer using (IOKit) libusb and jpeglib. Both of those are dylibs, and for some reason they won't link properly in XCode, and the OS won't resolve the dependencies when it attempts to load the kext. The background of this whole thing is that Samsung makes an LCD picture frame that can act as a second monitor; the only problem is that it's not DisplayLink or any other known protocol -- the Windows-only driver spits out a custom header and each frame is encoded as a JPEG and sent to the device. My implementation does that for OS X,

Library (dylib) not loaded - image not found - Python IDE

强颜欢笑 提交于 2019-12-02 01:13:07
Basically I'm trying to run some Python code from savReaderWriter module in order to create a .sav file ready to open in IBM SPSS. As a macOS user I needed to run these two lines in the terminal first for the module to work: echo 'export DYLD_LIBRARY_PATH=/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/savReaderWriter/spssio/macos' >> ~/.bash_profile echo 'export LC_ALL=en_US.UTF-8' >> ~/.bash_profile Below you can see a piece of code I'm trying to run in Python: import savReaderWriter savFileName = "someFile.sav" records = [['Test1', 1, 1], ['Test2', 2, 1]]

“Undefined symbols for architecture x86_64:”

拈花ヽ惹草 提交于 2019-12-01 18:11:19
I am attempting to compile this library on mac os x Mavericks 10.9.3 64-bit: http://www.openfec.org/downloads.html I followed the README exactly, and got this error: Linking C shared library ../../bin/Release/libopenfec.dylib Undefined symbols for architecture x86_64: "_of_add_from_multiple_symbols", referenced from: _of_linear_binary_code_backward_substitution in of_ml_tool.c.o "_of_add_to_symbol", referenced from: _of_linear_binary_code_decode_with_new_symbol in of_it_decoding.c.o _of_linear_binary_code_simplify_linear_system in of_ml_decoding.c.o _of_linear_binary_code_col_forward