cocoapods

C API for a Swift framework – always exposed?

限于喜欢 提交于 2021-01-29 05:44:45
问题 I am building a iOS SDK in Swift 5.3, and I define all classes (except the documented API) as internal (i.e. using the default access wherever I cannot use private ). The SDK is distributed as a cocoapod dynamic framework. So far so good. My SDK has a C component; these functions are used internally for some calculation, and are not expected to be exposed to the app developers. These are exposed to Swift via the unmbrella header, and my Swift code works with them as expected. Unfortunately,

Can't install GoogleMaps with CocoaPods

孤街醉人 提交于 2021-01-29 03:59:49
问题 I want to install the GoogleMap SDK for iOS in my project. But when I installed with pod install it got an error. [!] Unable to find a specification for `GoogleMaps` pod repo remove master ; pod setup doesn't help. pod repo update --verbose Updating spec repo `.git` $ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git fetch origin From https://github.com/CocoaPods/Specs 42723a4..830f47f master -> origin/master $ /usr/bin/git -C /Users/admin/.cocoapods/repos/.git rev-parse --abbrev-ref HEAD

Duplicate symbols with CocoaPods and SwiftPM

我的梦境 提交于 2021-01-28 21:15:03
问题 Ever since Xcode11 we've been migrating from CocoaPods to SwiftPM. Unfortunately some of the dependencies don't have SwiftPM support yet. Like Firebase. This isn't a real problem, since both of them can coexist next to eachother. But since (I think Firebase iOS SDK v6.13.0) they added a dependency to PromisesObjC . Which in itself isn't a problem, but most of our projects (and (sub)dependencies) use promises by google through SwiftPm. Now the problem is that both the Promises SwiftPM

Wrong Module-Swift.h header is generated with import to itself

点点圈 提交于 2021-01-28 19:13:57
问题 So I am mixing swift and objc everywhere. I have development pod called Renetik. It has some extensions written in swift but it's mostly objective c code. Now, I wrote some class and used it in main project fine and wanted to move it to Renetik development pod. When I do it somehow in Renetik-Swift.h wrong import is generated and project won't compile. #import <Renetik/Renetik.h> Then I experimented a lot. And found out that wrong import is generated when I actually return from swift class

Cocoapods/git 'detached HEAD' state

我与影子孤独终老i 提交于 2021-01-28 11:13:58
问题 have an issue with cocoapods/git. I'm trying to add new pod to the project and get the following issue. The point is a team member didnt get the issue when he tried to add the Pod to the project. Tried to reinstall/update cocoapods, git, delete and re-clone a repo. I've installed previous SDK version and everything fine, but the latest is failed Installing RescueSDK 4.0.1 [!] Error installing RescueSDK [!] /usr/local/bin/git clone https://github.com/LogmeinRescue/iOS-SDK.git /var/folders/sp

yoga/yoga.h file not found RCTConvert.h

♀尐吖头ヾ 提交于 2021-01-28 09:21:38
问题 I keep getting this error message whenever I do a pod install. I put 'use frameworks' and then this error pops up. When i remove the pod install my app is able to load. Can someone please assist me with what is wrong? Thank you in advanced! 回答1: 1.First thing if you are using pods in your project you should open ios/Project_Name.xcworkspace instead of ios/Project_Name.xcodeproj in Xcode 2.If you get error even did the above just try to add following into your pod file pod 'yoga', :path => '..

why flutter has stopped to launch my app on ios

自古美人都是妖i 提交于 2021-01-28 04:03:36
问题 All of a sudden I cant run my flutter app that uses firebase. Apparently there's a problem with the pod install process, some dependency incompatibility. Given the fact that I haven't changed anything in the yaml file and the app worked perfectly this morning, I assume is some problem with the tools and not with my source code. The problem appeared after a flutter plugin update, but I don't know if the two things are related. This is the build output: Launching lib/main.dart on iPhone XR in

Declare Architecture in Podfile

橙三吉。 提交于 2021-01-28 04:01:12
问题 Is there a way to include the architecture in a CocoaPods Podfile ? I am trying to build my app for both 32 and 64 bit but when I switch to Standard architectures (including 64-bit) in my project's build settings, it complains that I should let it automatically choose architectures. Doing this reverts my project back to Standard architectures . I have a feeling that Xcode is doing this because the Pods project (in my Xcworkspace) does not include 64-bit in its architectures. Is there a way to

error: module was created for incompatible target arm64-apple-ios8.0

瘦欲@ 提交于 2021-01-28 02:23:42
问题 There is a website called Appetize that needs an .app bundle (a iOS Simulator build of your app) for displaying your app in a online simulator. Here is the guide of the app bundle required: https://support.appetize.io/help/how-to-upload-an-app-to-appetize-io This is the command for generating the .app bundle: xcodebuild -sdk iphonesimulator -workspace Project.xcworkspace -scheme Appetize -configuration Debug When you press the Build & Run button in Xcode and open the app in a Simulator, it

dSYM file when Archiving is missing debug info

ⅰ亾dé卋堺 提交于 2021-01-27 10:41:17
问题 I have a workspace with two project files in it. One contains my app code (APP), the other builds a static library (Pods) that is linked into the APP project. The dSYM being generated when selecting Product->Archive contains only the debug info for the APP project. If I build by selecting Product->Build For->Archiving/ Xcode generates a dSYM that contains all required debug info. According to the following answer this was a bug in Xcode and is now fixed in version >=4.6. https://stackoverflow