ios-frameworks

Xcode reference a framework instead of link binary with libraries

烂漫一生 提交于 2019-12-05 06:20:18
When developing cocoa touch framework, how can i use code from third party framework by referencing it other then including it in the "link binary with libraries" option? I dont want to link to binary in order to prevent symbol conflicts between hosting project and the framework (project which will use the framework) Additionally i will need the framework code to use the hosting project reference to the third party framework, how can it be done? Or should i take different approach for example static framework (i am not familiar with the small differences of the two) Select the target you want

Using React Native within an iOS share extension

我怕爱的太早我们不能终老 提交于 2019-12-05 06:15:39
Jumping off of this facebook/react-native#1626 GitHub issue , I had a question about setting up a React Native view within an iOS share extension I posted an example GitHub repo that demonstrates the problem, summarized below. So far the proof-of-concept setup is pretty straightforward, but I feel like I'm missing something very simple. In my react-native init scaffolded Xcode project I created a new Share Extension target, and within it linked the appropriate React Native static libraries ( libReact.a , libRCTWebSocket.a , etc.). This gets our project compiling for a very simple

Framework was built without full bitcode - Framework bitcode already enabled

拈花ヽ惹草 提交于 2019-12-05 05:25:47
Getting this error on Archiving my app. Framework used is my own. So I cross checked. Bitcode in framework is Enabled. Not sure why am I getting this issue. These are the build settings in my framework : I followed this link but didn't work. Tried to set -fembed-bitcode in framework's project (not target, but project, since it is recommended in the link) setting. Try to set Skip Install to YES and Embed Bitcode to YES in framework build settings. Bitcode is an abstract encoding of an app that can be used to re-compile it in different ways, given a set of instructions. You can confirm whether

Run script for universal framework on Xcode 10

一曲冷凌霜 提交于 2019-12-05 05:16:41
问题 I Xcode 9.x, I was using the below script which worked fine : ###################### # Options ###################### REVEAL_ARCHIVE_IN_FINDER=false FRAMEWORK_NAME="${PROJECT_NAME}" SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal" FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}

Use 3rd party pod in sub-project (framework project)

我是研究僧i 提交于 2019-12-04 22:54:52
I am using XCode 8 + Swift 3. I created a fresh iOS project named " MyApp ". Then, I create a Cocoa touch framework project, named "MySubProject". (The idea is to have MyApp project accessing MySubProject code.) They are on the same level folder: - MyApp/ - MySubProject/ I added MySubProject into MyApp project, linked the MySubProject framework. Everything works fine. My project structure looks like this: All works until here! (MyApp code can access MyService code) Now, I need MySubProject to use Alamofire to communicate with backend. So, under MySubProject/ I setup the Alamofire with CocoaPod

Undefined symbols for architecture i386: “_SCNetworkReachabilitySetCallback”

*爱你&永不变心* 提交于 2019-12-04 16:11:03
问题 I use xcode4, on a openglES project i have added code for in-app purchase from the tutorial: http://www.raywenderlich.com/2797/introduction-to-in-app-purchases i have added SystemConfiguration.framework but this errors occurs: Ld /Users/Eros/Library/Developer/Xcode/DerivedData/blatest-acmdklrqungznggpjewgxuxqsvwo/Build/Products/Debug-iphonesimulator/blatest.app/blatest normal i386 cd /Users/Eros/Desktop/blatestDB setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms

iOS xcode microphone volume detection?

做~自己de王妃 提交于 2019-12-04 13:38:48
问题 What frameworks are required to detect how loud someone is talking into a microphone... Also, can anyone tell me what to search for in the documentation or google so I can create some code... What line of code would be commonly used when detecting volume levels of noise through the microphone? Thanks! 回答1: This seems to be a duplicate of: Realtime microphone sound level monitoring However, that question is old and the accepted answer links to a deprecated library. They now recommend that you

Multiple frameworks and common library

北慕城南 提交于 2019-12-04 11:45:12
Using iOS 8, Xcode 6 . Let's say I have 2 dynamic frameworks, frameworkA and frameworkB and they are both dependent on libC . In addition, I have an app that uses both frameworkA and frameworkB . My original thought was to make frameworkA and frameworkB umbrella frameworks and libC a subframework. However, Apple advises against umbrella framework and this post describes why umbrella framework is a bad idea due to potential linker conflict issue. My second option is to use cocoapods (still new to this so a bit fuzzy on details) to use libC as a pod which then gets compiled into frameworkA and

Hide source code in swift framework when distributing

吃可爱长大的小学妹 提交于 2019-12-04 06:40:39
I have created a swift framework for distribution to private customers and its the first time I have created an iOS framework so I am very clueless about a lot of things. Is it possible that my source codes can be hidden.I have searched everywhere but I can't find a proper answer to this. I'm not sure if Im explaining it thoroughly but to simplify I don't want developers to be able to modify or see the code in my framework. Can't developers just go and edit my code that they embedded in their own app.Is there a way to prohibit this. Thank you. Here is a fantastic tutorial demonstrates how to

Convert C & submodule included objective-C project (linphone) as a framework or static library?

谁说胖子不能爱 提交于 2019-12-04 05:31:32
问题 I want to merge two projects. First project Written in objective C and swift 2.3 Pod dependencies Have different Targets Submodules dependencies Second project https://github.com/BelledonneCommunications/linphone Written in Objective C dependency on linphone SDK written in C Submodules dependencies How can I convert Second project(linphone) as a framework? EDIT 1 I have integrated linphone project(second project) including the C written linphone SDK and Rectified all compile time errors. and