跳至主要内容

博文

目前显示的是 九月, 2020的博文

Gerrit资料

  Gerrit使用总结 Gerrit常见命令及最佳实践 sourceTree+gerrit管理代码 Push to gerrit using SourceTree I believe the answer provided by atlassian says to change the name of the remote branch when you see the Push dialog. Open the push dialog Click on the remote branch name under the "Remote Branch" column (mine is presently 'master') Type in the new remo branch name - which would be 'refs/for/master' for me Click OK. This appears to have properly pushed the commits into Gerrit for me. The problem I have now is that the 'refs/for/master' value doesn't persist. Now to figure that out. I will update this post once I've figured that out. Hope this helps even tho it's late to the game. Update: it turns out that you need to add a push entry under remote origin in the .git/config. You should do this via the git config command (tho i did edit the file manually i'm sure that's bad practice). the push line i wrote is: push = refs/heads/*:refs/for/* for clarity h...

Cocoapods - Found multiple specifications warning

  原文链接 ocoapods found multiple specifications for master trunk cocoapods unable to find specification pod spec lint unable to find a specification for umccommon unable to find a specification for flipperkit cocoapods version podspec dependency private repo fetch cocoapods specs On  pod install , I am getting warning like  Found multiple specifications for "<Pod Name>" It means that I have multiple  Podspecs  in this directory  ~/cocoapods/repo Example Podfile: source '<Private Podspec>' source 'https://github.com/CocoaPods/Specs.git' platform : ios , '9.0' target 'SDKDemo' do use_frameworks ! pod '<Pod Name>' end My question is that which Podspec will be used when installing pod. If Podspec is taken from  <Private Podspec> , How it will work in this case source 'https://github.com/CocoaPods/Specs.git' source '<Private Podspec>' I came to conclusion like order of source wil...

Xcode 12: building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

 原文链接 Basically you have to exclude  arm64  for simulator architecture both from your project and the Pod project, To do that, navigate to  Build Settings  of your project and add  Any iOS Simulator SDK  with value  arm64  inside  Excluded Architecture . OR If you are using custom  XCConfig  files, you can simply add this line for excluding simulator architecture. EXCLUDED_ARCHS [ sdk = iphonesimulator *] = arm64 Then You have to do the same for the  Pod project  until all the cocoa pod vendors are done adding following in their  Podspec . s . pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } s . user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } You can manually add the  Excluded Architechure  in your Pod project's  Build Settings , but it will be overwritten when you use  pod install . In place of this, you can add this s...