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

How to migrate from the "old way"? #30

Open
kevinrenskers opened this issue May 13, 2016 · 4 comments
Open

How to migrate from the "old way"? #30

kevinrenskers opened this issue May 13, 2016 · 4 comments

Comments

@kevinrenskers
Copy link

I used to include the acknowledgements via this way: https://github.com/CocoaPods/CocoaPods/wiki/Acknowledgements/. So with the post_install and that given Root.plist.

Now I am trying to migrate to cocoapods-acknowledgements. I've installed the plugin, added it to my Podfile, ran pd install, and while the old file Resources/Settings.bundle/Acknowledgements.plist is now gone, there are no new files in the settings bundle and indeed, the settings app now shows a blank page for the app.

screen shot 2016-05-13 at 14 30 04

As you can see, the plists are added to the Pods folder. The README of this project is a bit sparse on how to finish the integration into the actual settings bundle, any help?

@marcelofabri
Copy link
Collaborator

Are you using the settings_bundle params?

plugin 'cocoapods-acknowledgements', :settings_bundle => true

This will make the plugin copy the plists to Settings.bundle. You'd only have to change your Root.plist to use it. Something like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>StringsTable</key>
    <string>Root</string>
    <key>PreferenceSpecifiers</key>
    <array>
        <dict>
            <key>Type</key>
            <string>PSChildPaneSpecifier</string>
            <key>Title</key>
            <string>Licenses</string>
            <key>File</key>
            <string>Pods-settings-metadata</string>
        </dict>
    </array>
</dict>
</plist>

@kevinrenskers
Copy link
Author

I do indeed have that line with setting_bundle => true, and added Pods-sling-metadata into the File string. But still the Licenses page in the Settings app is completely empty. Shouldn't the plist be placed in the root of the Settings.bundle?

@marcelofabri
Copy link
Collaborator

marcelofabri commented May 13, 2016

Can you post the full pod install output and your Podfile?

@kevinrenskers
Copy link
Author

Analyzing dependencies
Downloading dependencies
Using 1PasswordExtension (1.8.1)
Using AFNetworking (2.6.3)
Using ARChromeActivity (1.0.5)
Using Aspects (1.4.1)
Using BBBadgeBarButtonItem (1.2)
Using Cloudinary (1.0.15)
Using DACircularProgress (2.3.1)
Using DateTools (1.7.0)
Using Expecta (1.0.5)
Using FXForms (1.2.14)
Using FrameAccessor (2.0)
Using GVUserDefaults (1.0.2)
Using HexColors (2.2.1)
Using HockeySDK (3.8.6)
Using IDMPhotoBrowser (1.8.4)
Using IQKeyboardManager (4.0.2)
Using JSONModel (1.2.0)
Using KINWebBrowser (1.3.2)
Using Mixpanel (2.9.8)
Using ObjectiveSugar (1.1.0)
Using PureLayout (2.0.6)
Using ReactiveCocoa (2.5)
Using RequestUtils (1.1.2)
Using SDNetworkActivityIndicator (0.0.1)
Using SDWebImage (3.7.5)
Using SWTableViewCell (0.3.7)
Using SlackTextViewController (1.9.2)
Using SlingAPI (1.40.2)
Using THContactPicker (2.0)
Using TSMarkdownParser (1.0.20)
Using TSMessages (0.9.12)
Using TUSafariActivity (1.0.4)
Using UIColor-HexString (1.3.0)
Using UIScrollView-InfiniteScroll (0.7.3)
Using jetfire (0.1.5)
Using pop (1.0.9)
Generating Pods project
Integrating client project
Adding Acknowledgements
Added Pod info to Settings.bundle for target Pods-sling
Added Pod info to Settings.bundle for target Pods-Tests
Added Pod info to Settings.bundle for target Pods-Sling Widget
Sending stats
Pod installation complete! There are 28 dependencies from the Podfile and 36 total pods installed.
source 'https://github.com/CocoaPods/Specs.git'
source '[email protected]:gangverk/pods.git'

platform :ios, '8.0'
inhibit_all_warnings!

plugin 'cocoapods-acknowledgements', :settings_bundle => true

target 'sling' do
  pod '1PasswordExtension'
  pod 'Aspects'
  pod 'BBBadgeBarButtonItem'
  pod 'Cloudinary'
  pod 'DateTools'
  pod 'FXForms'
  pod 'FrameAccessor'
  pod 'GVUserDefaults'
  pod 'UIColor-HexString'
  pod 'HockeySDK'
  pod 'IQKeyboardManager'
  pod 'Mixpanel'
  pod 'ObjectiveSugar'
  pod 'PureLayout', '= 2.0.6'
  pod 'ReactiveCocoa'
  pod 'RequestUtils'
  pod 'SDNetworkActivityIndicator'
  pod 'SDWebImage'
  pod 'SWTableViewCell'
  pod 'SlackTextViewController'
  pod 'SlingAPI'
  pod 'TSMessages'
  pod 'UIScrollView-InfiniteScroll'
  pod 'THContactPicker'
  pod 'TSMarkdownParser', '= 1.0.20'
  pod 'KINWebBrowser'
  pod 'IDMPhotoBrowser'
end

target 'Tests' do
  pod 'Expecta'
end

target 'Sling Widget' do
  pod 'DateTools'
  pod 'SlingAPI'
end

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

2 participants