Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pod update some framework not working #83

Closed
CodeEagle opened this issue Jul 9, 2019 · 11 comments
Closed

pod update some framework not working #83

CodeEagle opened this issue Jul 9, 2019 · 11 comments

Comments

@CodeEagle
Copy link

Reproduce
first add pod 'SomePod'
pod install

and then update that pod
update podfile pod 'SomePod', :git=>'....', :branch=>'master'
then pod update SomePod --no-repo-update

will only update source file but not building framework

@tivadarmolitorisz
Copy link

Hi @CodeEagle, could you provide the specific podfile and pod install output? (Pls run the pod install verbose mode)

@CodeEagle
Copy link
Author

nope, just check out the step above

@tivadarmolitorisz
Copy link

Unfortunately, it's not enough for me to investigate it.

@CodeEagle
Copy link
Author

em, Unfortunately

@AdiAyyakad
Copy link

AdiAyyakad commented Jul 10, 2019

I'm seeing this issue trying update from RxSwift 4.5 to RxSwift 5

Maybe this is just a dependency issue? Will update if it turns out to be a cocoapods-binary issue

@tuantm-citigo
Copy link

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

# Cocoapods binary
plugin 'cocoapods-binary'

# Keep source code for backing up
keep_source_code_for_prebuilt_frameworks!

# Enable bitcode
enable_bitcode_for_prebuilt_frameworks!

# Apply prebuilt for all pods
all_binary!

target 'cocoapods-binary-example' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for cocoapods-binary-example
  pod 'AFNetworking'

end

Environment

- Cocoapods: 1.7.5
- Cocoapods-binary: 0.4.4
- Xcode: 10.2.1
- MacOS: 10.14.6

Step to reproduce issue:

  1. Using old version of pod (eg: pod 'AFNetworking', '~> 3.0')
  2. Run pod install to prebuild framework
  3. Run pod update AFNetworking to update single pod
  4. Check version of generated framework ==> Not updated

Log

$ pod update AFNetworking --verbose --no-repo-update
  Preparing
    - Running pre install hooks
      - cocoapods-binary from `/Users/tuantm/.rvm/gems/ruby-2.6.3/gems/cocoapods-binary-0.4.4/lib/cocoapods-binary/Main.rb`
🚀  Prebuild frameworks
        Preparing
          - Running pre install hooks
            - cocoapods-binary from `/Users/tuantm/.rvm/gems/ruby-2.6.3/gems/cocoapods-binary-0.4.4/lib/cocoapods-binary/Main.rb`

Analyzing dependencies

Inspecting targets to integrate
        Using `ARCHS` setting to build architectures of target `Pods-cocoapods-binary-example`: (``)

Finding Podfile changes
        - AFNetworking

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
        M AFNetworking

Downloading dependencies

-> Installing AFNetworking 3.2.1 (was 3.1.0)
        > Copying AFNetworking from `/Users/tuantm/Library/Caches/CocoaPods/Pods/Release/AFNetworking/3.2.1-b6f89` to `Pods/_Prebuild/AFNetworking`
        - Running pre install hooks

Generating Pods project
        - Creating Pods project
        - Installing files into Pods project
          - Adding source files
          - Adding frameworks
          - Adding libraries
          - Adding resources
          - Linking headers
        - Installing Pod Targets
          - Installing target `AFNetworking` iOS 8.0
            - Generating module map file at `Pods/_Prebuild/Target Support Files/AFNetworking/AFNetworking.modulemap`
            - Generating umbrella header at `Pods/_Prebuild/Target Support Files/AFNetworking/AFNetworking-umbrella.h`
            - Generating Info.plist file at `Pods/_Prebuild/Target Support Files/AFNetworking/AFNetworking-Info.plist`
            - Generating dummy source at `Pods/_Prebuild/Target Support Files/AFNetworking/AFNetworking-dummy.m`
        - Installing Aggregate Targets
          - Installing target `Pods-cocoapods-binary-example` iOS 9.0
            - Generating Info.plist file at `Pods/_Prebuild/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-Info.plist`
            - Generating module map file at `Pods/_Prebuild/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example.modulemap`
            - Generating umbrella header at `Pods/_Prebuild/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-umbrella.h`
            - Generating dummy source at `Pods/_Prebuild/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-dummy.m`
        - Generating deterministic UUIDs
        - Stabilizing target UUIDs
        - Running post install hooks
        - Writing Xcode project file to `Pods/_Prebuild/Pods.xcodeproj`
        Cleaning up sandbox directory
        - Writing Lockfile in `Pods/_Prebuild/Manifest.lock.tmp`
        - Writing Manifest in `Pods/_Prebuild/Manifest.lock`
        - Running post install hooks
          - cocoapods-stats from `/Users/tuantm/.rvm/gems/ruby-2.6.3/gems/cocoapods-stats-1.1.0/lib/cocoapods_plugin.rb`

Sending stats
Prebuild frameworks (total 0)

🤖  Pod Install

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-cocoapods-binary-example`: (``)

Finding Podfile changes
  - AFNetworking

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  M AFNetworking

Downloading dependencies

-> Installing AFNetworking 3.2.1 (was 3.1.0)
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Installing files into Pods project
    - Adding source files
    - Adding frameworks
    - Adding libraries
    - Adding resources
    - Linking headers
  - Installing Pod Targets
    - Installing target `AFNetworking` iOS 8.0
  - Installing Aggregate Targets
    - Installing target `Pods-cocoapods-binary-example` iOS 9.0
      - Generating Info.plist file at `Pods/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-Info.plist`
      - Generating module map file at `Pods/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-umbrella.h`
      - Generating dummy source at `Pods/Target Support Files/Pods-cocoapods-binary-example/Pods-cocoapods-binary-example-dummy.m`
  - Generating deterministic UUIDs
  - Stabilizing target UUIDs
  - Running post install hooks
  - Writing Xcode project file to `Pods/Pods.xcodeproj`
  Cleaning up sandbox directory
  - Writing Lockfile in `Podfile.lock`
  - Writing Manifest in `Pods/Manifest.lock`

Integrating client project

Integrating target `Pods-cocoapods-binary-example` (`cocoapods-binary-example.xcodeproj` project)
  - Running post install hooks
    - cocoapods-stats from `/Users/tuantm/.rvm/gems/ruby-2.6.3/gems/cocoapods-stats-1.1.0/lib/cocoapods_plugin.rb`

Sending stats

-> Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

@fedulvtubudul
Copy link

I have same issue after trying to update one of the dependencies which has cp-binary enabled. The pod is specified with git and tag explicitly pointing to the new version. After doing no matter pod install or pod update, the log says Installing MAGDebugKit 0.8.2 (was 0.8.1), like everything is OK, but it's really not. The workaround we've found is temporarily remove the dependency from Podfile, run pod install, then return the dependency and repeat the pod install step.

@muzee-bot
Copy link

muzee-bot commented Sep 26, 2019

same question to me
here is the log

$ pod install
🚀  Prebuild frameworks
Analyzing dependencies
Downloading dependencies
Installing BarrageRenderer (2.1.0)
Installing CryptoSwift (0.15.0)
Installing FBSDKCoreKit (5.6.0)
Installing FBSDKLoginKit (5.6.0)
Installing GTMSessionFetcher (1.2.2)
Installing GoogleSignIn (4.4.0)
Installing GoogleToolboxForMac (2.2.1)
Installing IQKeyboardManagerSwift (6.4.2)
Installing Kingfisher (5.4.0)
Installing LineSDKSwift (5.3.0)
Installing Localize-Swift (2.0.0)
Installing ObjectMapper (3.5.1)
Installing RxCocoa (4.5.0)
Installing RxSwift (4.5.0)
Installing SnapKit (4.2.0)
Installing Toast-Swift (5.0.0)
Installing lottie-ios (3.1.1)
Generating Pods project
Sending stats
Prebuild frameworks (total 17)
Prebuilding BarrageRenderer...

As you see Prebuild frameworks (total 17)
But ONLY build one framework then exit.

@tuantm-citigo
Copy link

@muzee-bot Did your project path contains space?

@kientux
Copy link

kientux commented Oct 25, 2019

I have the same problem too, and the workaround is temporary remove then reinstall the pods that updated, like @fedulvtubudul said.

@winstondu
Copy link

This seems to be fixed by: #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants