Skip to content

Invalid 'Podfile' could not parse a build_type #4

@Pashtunzoy

Description

@Pashtunzoy

Hi,

I have most of my pods installed through NPM so have to use the '.../node_modules/LIBRARY_NAME' and somehow installing cocoapods-user-defined-build-types and setting it's required headers in my main Podfile still gives me the following error:

[!] Invalid `Podfile` file: [!] cocoapods-user-defined-build-types could not parse a build_type of '../node_modules/react-native-library_name/LIBRARY_NAME.podspec' on LIBRARY_NAME.

This is how I use your plugin:

plugin 'cocoapods-user-defined-build-types'

enable_user_defined_build_types!

target 'AppName' do

    pod 'React', :path => '../node_modules/react-native/'
    pod 'React-Core', :path => '../node_modules/react-native/'

    pod 'AWSCore'

    pod 'LIBRARY_NAME', :podspec => '../node_modules/react-native-library_name/LIBRARY_NAME.podspec', :build_type => :dynamic_framework

end

If I use the plugin on the AWSCore like this, it works fine:

pod 'AWSCore', :build_type => :dynamic_framework

Not sure if you support this or I'm setting it wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions