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

Can not auto generator plist file if only using Cocoapods #96

Closed
ga-tungnguyen opened this issue Dec 26, 2018 · 10 comments
Closed

Can not auto generator plist file if only using Cocoapods #96

ga-tungnguyen opened this issue Dec 26, 2018 · 10 comments
Assignees

Comments

@ga-tungnguyen
Copy link

When I try using CocoaPods is Setting.bundle does not the auto-generator. Moreover, in the setting screen, the list of licenses is not displayed. I used this test on swift 3 and it perfectly worked. Can you explain to me? Thanks

I get a message like below. (This message show when I tried generator plist file from a terminal)

[2018-12-26T14:16:38.060+09:00] [INFO] Start
[2018-12-26T14:16:38.076+09:00] [INFO] Pod acknowledgements found: Pods-InsightTests-acknowledgements.plist
[2018-12-26T14:16:38.076+09:00] [INFO] Pod acknowledgements found: Pods-Insight-acknowledgements.plist
[2018-12-26T14:16:38.140+09:00] [INFO] Pods License parse start
[2018-12-26T14:16:38.149+09:00] [WARNING] Not found: Cartfile.resolved -- file:///Users/t_nguyen/Workspace/insight_app_ios/.
[2018-12-26T14:16:38.150+09:00] [WARNING] Not found: Cartfile -- file:///Users/t_nguyen/Workspace/insight_app_ios/.
[2018-12-26T14:16:38.150+09:00] [INFO] Carthage License collect start
[2018-12-26T14:16:38.150+09:00] [INFO] Manual License start
[2018-12-26T14:16:38.151+09:00] [WARNING] Not found: file:///Users/t_nguyen/Workspace/insight_app_ios/Insight/Insight/Settings.bundle/com.mono0926.LicensePlist.latest_result.txt.
[2018-12-26T14:16:38.152+09:00] [INFO] Directory created: file:///Users/t_nguyen/Workspace/insight_app_ios/Insight/Insight/Settings.bundle/
[2018-12-26T14:16:38.180+09:00] [INFO] End
[2018-12-26T14:16:38.180+09:00] [INFO] ----------Result-----------
[2018-12-26T14:16:38.181+09:00] [INFO] # Missing license:
[2018-12-26T14:16:38.181+09:00] [INFO] None 🎉
@mono0926 mono0926 self-assigned this Dec 26, 2018
@mono0926
Copy link
Owner

Tell me your CocoaPods version.

Run pod --version and paste the result.

@ga-tungnguyen
Copy link
Author

@mono0926 Thanks. I resolved this problem, my mistake. Because I still haven't changed it in the Root.plist file

@ga-tungnguyen
Copy link
Author

When I using command ${PODS_ROOT}/LicensePlist/license-plist --output-path $PRODUCT_NAME/Settings.bundle in Runscript phase is com.mono0926.LicensePlist folder is created but folder is empty.

@ga-tungnguyen
Copy link
Author

And I get error like below:

Showing Recent Messages
:-1: �[0;31m[2018-12-26T16:34:13.953+09:00] [ERROR] Failed to write to (rootPath: file:///Insight/Insight/Settings.bundle/com.mono0926.LicensePlist.plist, itemsPath: file:///Insight/Insight/Settings.bundle/com.mono0926.LicensePlist).

@mono0926
Copy link
Owner

Run pod --version and paste the result.

Why don't you answer my question?

@ga-tungnguyen
Copy link
Author

@mono0926 oh, srr.
Pod version : 1.5.3

@mono0926
Copy link
Owner

Umm....Then, could you paste the Podfile?

@ga-tungnguyen
Copy link
Author

ga-tungnguyen commented Dec 26, 2018

platform :ios, '10.1'
inhibit_all_warnings!
workspace 'ProjectWorkspace'
use_frameworks!

project 'Project/Project.xcodeproj'

def rx_pod    
    pod 'RxSwift',    '~> 4.0'
    pod 'RxCocoa',    '~> 4.0'
end

def rx_testing_pod
    pod 'RxBlocking', '~> 4.0'
    pod 'RxTest',     '~> 4.0'
end

def networking_pod
    pod 'Moya/RxSwift', '~> 11.0'
    pod 'Alamofire', '~> 4.7'
    pod 'AlamofireImage', '~> 3.4'
end

def ui_pod
    pod 'XLPagerTabStrip', '~> 8.0'
    pod 'Charts', '~> 3.1'
end

def testing_pod

end

def utility_pod
    pod 'SwiftLint'
    pod 'IQKeyboardManagerSwift'
    pod 'SwiftGen'
    pod 'GoogleMaps'
    pod 'GooglePlaces'
    pod 'AWSS3'
    pod 'AWSCognito'
    pod 'AWSCognitoIdentityProvider'
    pod 'LicensePlist'
end

def auth_pod
    pod 'GoogleSignIn'
    pod 'FBSDKLoginKit'
end


target 'Project' do project 'Project/Project.xcodeproj'
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

  # Pods for Project
  rx_pod
  utility_pod
  networking_pod
  ui_pod
  auth_pod
  target 'ProjectTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

@mono0926
Copy link
Owner

I tried with it, but there are no problems.
Result: Archive.zip

There are no issues except yours, so I suspect the problem's cause is your mistake.

This is my environment:

  • license-plist: 2.0.0
  • pod: 1.5.3
  • Swift: 4.2.1
  • Xcode: 10.1

@mono0926
Copy link
Owner

mono0926 commented Dec 28, 2018

And, acknowledgements.plist in Pods/Target Support Files is this: Archive.zip

License files are generated from these files as the log says.

@mono0926 mono0926 closed this as completed Jan 9, 2019
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