ooyala / ios-sdk-podspecs

iOS SDK Coacoapod .
0 stars 4 forks source link

Podspec 4.31.0 parse error with Cocoapods 1.3.1 #23

Closed ThuggishNuggets closed 5 years ago

ThuggishNuggets commented 6 years ago

Receiving the following error when attempting to use the podspec for 4.31.0 from master:

$ pod install && workspace
Analyzing dependencies
[REDACTED]
Fetching podspec for `OoyalaSDK` from `https://github.com/ooyala/ios-sdk-podspecs/blob/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`
[!] Failed to load 'OoyalaSDK' podspec: 
[!] Invalid `OoyalaSDK.podspec` file: syntax error, unexpected '<'
<!DOCTYPE html>
 ^
OoyalaSDK.podspec:8: syntax error, unexpected '<'
<html lang="en">
 ^
OoyalaSDK.podspec:9: syntax error, unexpected '<'
  <head>
   ^
OoyalaSDK.podspec:11: syntax error, unexpected '<'
  <link rel="dns-prefetch" href="https://assets-cdn.github.com">
   ^
OoyalaSDK.podspec:11: syntax error, unexpected tIDENTIFIER, expecting end-of-input.

 #  from OoyalaSDK.podspec:7
 #  -------------------------------------------
 #  
 >  <!DOCTYPE html>
 #  <html lang="en">
 #  -------------------------------------------

Whoops.. I wasn't using the raw URL.

Trying to use the following in Podfile:

pod 'OoyalaSDK', :podspec => 'https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec'

Which results in the following error:

$ pod install && workspace
Analyzing dependencies
[REDACTED]
[!] Unable to satisfy the following requirements:

- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (= 4.31.0)` required by `Podfile.lock`

None of your spec sources contain a spec satisfying the dependencies: `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`), OoyalaSDK (= 4.31.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
ThuggishNuggets commented 6 years ago

Workaround

We were able to get this working by using 4.31.0, running pod install (fails), then using 4.30.0, running pod install (succeeds), then switching back to 4.31.0 and running pod install again which would then succeed.

We were previously using 4.26.0

$ pod install && workspace
Analyzing dependencies
[REDACTED]
[!] Unable to satisfy the following requirements:

- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`)` required by `Podfile`
- `OoyalaSDK (= 4.31.0)` required by `Podfile.lock`

None of your spec sources contain a spec satisfying the dependencies: `OoyalaSDK (from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`), OoyalaSDK (= 4.31.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
$ pod install && workspace
Analyzing dependencies
[REDACTED]
Fetching podspec for `OoyalaSDK` from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.30.0/OoyalaSDK.podspec`
Downloading dependencies
[REDACTED]
Installing OoyalaSDK 4.30.0 (was 4.26.0)
[REDACTED]
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are [REDACTED] dependencies from the Podfile and [REDACTED] total pods installed.
$ pod install && workspace
Analyzing dependencies
[REDACTED]
Fetching podspec for `OoyalaSDK` from `https://raw.githubusercontent.com/ooyala/ios-sdk-podspecs/master/OoyalaSDK/4.31.0/OoyalaSDK.podspec`
Downloading dependencies
[REDACTED]
Installing OoyalaSDK 4.31.0 (was 4.30.0)
[REDACTED]
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are [REDACTED] dependencies from the Podfile and [REDACTED] total pods installed.