ios-frameworks

Run script for universal framework on Xcode 10

≯℡__Kan透↙ 提交于 2019-12-03 17:07:57
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}.framework" ###################### # Build Frameworks ###################### xcodebuild -project "${PROJECT

WARNING ITMS-90080: "The executable 'Payload/myapp.app/Frameworks/some-framework.framework' is not a Position Independent Executable

喜夏-厌秋 提交于 2019-12-03 16:01:15
问题 I have previously been able to submit my application without issue. The only part of my workflow that changed was the use of Sourcetree. After pulling updates to the following frameworks, I receive this warning when submitting to the iOS App Store. I also receive an email that contains: Non-PIE Binary - The executable 'Payload/myapp.app/Frameworks/Alamofire.framework' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For

CocoaPods file reference is a member of multiple groups

醉酒当歌 提交于 2019-12-03 15:03:58
问题 I have an app with a share extension. My app depends on CocoaLumberjack/Default , and my share extension depends on CocoaLumberjack/Core . When I build with use_frameworks! , I get the following error: $ rm -rf Pods Podfile.lock; pod install Updating local specs repositories Analyzing dependencies Downloading dependencies Installing CocoaLumberjack (2.0.3) Generating Pods project 2015-10-28 10:46:04.015 ruby[53095:3440989] warning: The file reference for "CocoaLumberjack.framework" is a

iOS9: Using dynamic framework with Simulator and Device

核能气质少年 提交于 2019-12-03 13:38:59
I created a dynamic cocoa framework that I would like to use across my apps. After I build the framework for an actual device, I bring it over to an app. I can only run the app on that device. When I try to run it on a simulator, framework files are not recognized. I get error messages: 'ViewController' is unavailable: cannot find swift for declaration for this class I tried building the framework for an iPhone 6 simulator and running the app on an iPhone 6 simulator, but the same problem persists. How can I create/build a single framework that I can bring into any app and be able to use it on

App crash on device but works on simulator iOS

倖福魔咒の 提交于 2019-12-03 13:06:33
App wasn't developed by me, but now I have to add some features. Code compiles add launches on simulator but immediately crash on real device (didFinishLaunchingWithOptions never calls). Xcode doesn't show any errors. I think the problem may be in pods and frameworks but don't know how to check if this so. I reinstalled pods and recreated framework dependences in project but no app still crash. I have only this info from Xcode How this info can help me? Any help appreciated. UPD1: stacktrace UPD2: App crash on iOS9 and iOS10 so NSCameraUsageDescription isn't the problem had the same problem,

Does iOS 8 support dynamic linking?

[亡魂溺海] 提交于 2019-12-03 10:50:01
问题 Up until iOS7, Apple did not support dynamic linking due to security concerns. Code reuse between developers usually relied on static libraries, which were built as part of the executable of the app. Introducing extensions in iOS8 seems to change this a bit, because extensions are separate executables. Sharing code between an extension and its containing app is done via a framework. Apple is saying this in their release notes: Frameworks for iOS. iOS developers can now create dynamic

How to make an universal iOS library for both Objective-C and Swift?

时间秒杀一切 提交于 2019-12-03 09:59:28
问题 I need to make an library for iOS (either Framework or static library - I haven't decided yet) that can be used in both Objective-C and Swift projects. What is the best way of doing this? The way I see it I have three options: Write the library in Objective-C and add support for Swift (bridging headers etc). Write the library in Swift and add support for Objective-C. Write two libraries, both in Objective-C and Swift. I really want to avoid this option. The main requirement here is that it

Whats the most used cross-platform Mobile Application Development Framework today?

烈酒焚心 提交于 2019-12-03 09:45:25
问题 I'm like many others here, giving their first steps in the mobile world an not knowing where to start from... Well, I've seen a few posts here about mobile development frameworks or sdk's, but all of them are directed to specific purposes, like web clients, widgets, html development, etc... What I'm really wondering is, amongst all the choices currently in the market, like PhoneGap, Rho, or Corona, and all the others, what is the most used MDF for general cross platform mobile development.

Undefined symbols for architecture i386: “_SCNetworkReachabilitySetCallback”

被刻印的时光 ゝ 提交于 2019-12-03 09:22:40
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/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer

iOS xcode microphone volume detection?

浪子不回头ぞ 提交于 2019-12-03 08:41:36
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! Erik B 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 instead use AVAudioRecorder . They suggest this tutorial and it seems to be what you are looking for