objective c - Log Cocoapod dependancies and version in iOS -


i'd log cocoapods , related versions i'm using in project not sure how this. there method available can use write these values log file? i'm using objective-c project can port swift if needed.

here's how did this. first, go build phases -> copy bundle resources , add podfile.lock (add other..)

then use method return contents of file:

      -(nsstring *)getpodfilelockcontent   {          nsstring* podfilelockcontent = nil;          nserror* error;         nsurl* podfilelockurl = [[nsbundle mainbundle] urlforresource:@"podfile" withextension:@"lock"];          _podfilelockcontent = [[nsstring alloc] initwithcontentsofurl:podfilelockurl encoding:nsutf8stringencoding error:&error];         if (podfilelockcontent) {              [nslog(@"error: failed read podfile.lock, make sure have added target in project (this needs done manually @ moment). %@", error];              return nil;         }      }     return podfilelockcontent; } 

this returns full contents of podfile.lock. can print out or parse values require.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -