stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.05k stars 958 forks source link

license file in 4.0.2 #154

Closed Suz closed 9 years ago

Suz commented 9 years ago

getting an error when I switch branches:

[!] Unable to read the license file /.../Pods/Stripe/LICENSE for the spec Stripe (4.0.2)

Is LICENSE defined for this tag?

jflinter commented 9 years ago

Strange; none of those settings have changed in a while. What do you mean "getting an error when I switch branches?" Do you mean changing the contents of your Podfile, or something else?

Suz commented 9 years ago

I'm working on two feature branches: feature-apple-pay and feature-vertical-art steps: checkout feature-vertical-art, pod update. No problems -- project compiles and runs in simulator. checkout feature-apple-pay, pod update: The update gives the license error (pasted above) and the project fails to compile. I think the compile errors vary. The latest one is /.../Pods/Stripe/Stripe/STPAPIClient.m:16:9: 'STPAPIConnection.h' file not found

jflinter commented 9 years ago

I'm assuming those two different branches have different Podfiles; mind pasting them here?

Suz commented 9 years ago

branch apple-pay (broken).... maybe it's the 7.0 target? but it was working yesterday before I created the other branch.

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

xcodeproj 'Depict'

pod 'AFNetworking'
pod 'MagicalRecord'
pod 'SDWebImage'
pod 'Stripe'
pod 'Stripe/ApplePay'
pod 'ApplePayStubs'
pod 'PaymentKit'
pod 'google-cast-sdk'
pod 'AppsFlyer-SDK', '~> 2.5'
pod 'GoogleConversionTracking', '~> 3.1'
pod 'uservoice-iphone-sdk', '~> 3.2'
pod 'Intercom'

target :DepictTest do
    pod 'Specta'
    pod 'Expecta'
    pod 'Expecta+Snapshots'     
    pod 'OCMock'
end

post_install do |installer|
    installer.project.targets.each do |target|
        puts target.name
    end
end

working branch: vertical-art

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

xcodeproj 'Depict'

pod 'AFNetworking'
pod 'MagicalRecord'
pod 'SDWebImage', :git => 'https://github.com/rs/SDWebImage.git', :commit => '9b8aa8a12d47e01aa'
pod 'Stripe'
pod 'PaymentKit'
pod 'google-cast-sdk'
pod 'AppsFlyer-SDK', '~> 2.5'
pod 'GoogleConversionTracking', '~> 3.1'
pod 'uservoice-iphone-sdk', '~> 3.2'
pod 'Intercom'

target :DepictTest do
    pod 'Specta'
    pod 'Expecta'
    pod 'Expecta+Snapshots'     
    pod 'OCMock'
end

post_install do |installer|
    installer.project.targets.each do |target|
        puts target.name
    end
end
jflinter commented 9 years ago

Hmm, so I just created a brand-new project with that Podfile and it was able to compile just fine. A few suggestions:

Going to close this issue for now as it appears to be a problem with your specific installation, but happy to re-open if that ends up not being the case.