ios-frameworks

Undefined symbol OBJC_CLASS_$ when creating iOS framework

蹲街弑〆低调 提交于 2021-02-16 15:18:04
问题 I'm trying to build a iOS framework, to this, I'm using some dependencies and while building the framework project alone gives no error, when I install using CocoaPods in a demo app I get the following error Undefined symbol: _OBJC_CLASS_$_DFPRequest . So this is what I have in the framework: Podfile platform :ios, '10.0' use_frameworks! target 'mylib' do pod 'PrebidMobile' pod 'Google-Mobile-Ads-SDK' pod 'mopub-ios-sdk' pod 'GoogleAds-IMA-iOS-SDK' end MyLib.podspec Pod::Spec.new do |s| ... s

PushKit notification not arriving after application kill AND device reboot

谁说我不能喝 提交于 2021-02-07 09:32:49
问题 My iOS application successfully receives VoIP push notifications even if it is closed, thanks to PushKit. There is only one condition when it fails: If I swipe my app out(terminate) throught the standard task switcher AND reboot my device. At first, I had this problem simply after rebooting the device, as described in this question: Troubleshooting post-boot push notification delivery failures A background task hack helped me, many thanks to the author, too bad I couldn't add any score. Now I

PushKit notification not arriving after application kill AND device reboot

自古美人都是妖i 提交于 2021-02-07 09:29:01
问题 My iOS application successfully receives VoIP push notifications even if it is closed, thanks to PushKit. There is only one condition when it fails: If I swipe my app out(terminate) throught the standard task switcher AND reboot my device. At first, I had this problem simply after rebooting the device, as described in this question: Troubleshooting post-boot push notification delivery failures A background task hack helped me, many thanks to the author, too bad I couldn't add any score. Now I

Xcode 11: Building a static framework which includes other frameworks/libs into its binary in iOS

為{幸葍}努か 提交于 2021-01-29 18:26:48
问题 I have a framework target in Xcode 11.x to build a Dynamic framework with statically linking some 3rd party libraries using pod file. platform :ios, '9.0' #use_frameworks! target 'Framework' do pod 'DeviceUtil', '~> 2.0' end Now I have a requirement to build a Static framework, and for this I changed the "Mach-O' type to Static Library in 'Framework's' target build settings and able to create Static framework. The generated framework shows all architectures correctly (for architecture i386):

Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler

萝らか妹 提交于 2021-01-28 23:44:41
问题 After updating to Xcode 11.5, I cannot import My Universal framework. Basically, I have created one framework and also generated the universal framework. The framework was compiled in the lower version of Swift (Swift 5.1). It worked fine previously. While importing the same framework in the same project in XCode 11.5 (Swift 5.2), it throws the following error. Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler I have already marked the Build Libraries for

Bundling react-native project as iOS framework or (.aar) Android library

余生颓废 提交于 2020-08-22 08:18:50
问题 I am exploring the possibility of using react-native to create a iOS framework (android library), which can be distributed and can be integrated with apps by including while building a app. For example, maintaining single codebase to create a ".framework" for ios, or .jar for android (basically compiled code instead of react component code) as distribution for developer community. 回答1: React native recommended way to install react dependencies is via npm install . A very basic solution can be

Build framework for multiple architectures (arm64, armv7, armv7s)

耗尽温柔 提交于 2020-02-01 15:35:10
问题 I'm trying to upload to TestFlight a project build for arm64, armv7, and armv7s. It is using a framework from another project. But the frameowork appears to be built only for arm64 and not arm64 ( file was built for arm64 which is not the architecture being linked (armv7) ). The question is how do I make the framework containing all architectures? I want to keep the projects separated. And I don't care for simulators. I want to make sure it is built for release. This is the framework target:

Can I Hide images from bundle resource or framework in iOS

隐身守侯 提交于 2020-01-03 05:00:10
问题 I have a project converted to a framework, and a bundle resource which has many images and storyboard. Everything works perfectly fine. My question is can I hide or protect these images from being replaced in the bundle resource? I want to give access to only some images, rest of them i want to hide it. is it possible? 回答1: You can convert image to NSData, encrypt, compress it. You can also convert it to base 64, encrypt it, etc. 来源: https://stackoverflow.com/questions/21421888/can-i-hide

Prevent OpenGL.framework from Loading in Cocoa App

笑着哭i 提交于 2020-01-02 19:46:32
问题 My application links against these Frameworks: Cocoa.Framework AppKit.Framework CoreData.Framework Foundation.Framework Note that OpenGL.Framework is NOT linked. However, after setting DYLD_PRINT_LIBRARIES=1, I note that: ... dyld: loaded: /System/Library/Frameworks/ OpenGL.framework /Versions/A/ OpenGL dyld: loaded: /System/Library/Frameworks/ OpenGL.framework /Versions/A/Libraries/... dyld: loaded: /System/Library/Frameworks/ OpenGL.framework /Versions/A/Libraries/... dyld: loaded: /System