简体   繁体   中英

Forking a project from GitHub to CocoaPods

I'm new to GitHub and have forked this project (One-Signal) on my own repository, here . I have updated some files in my repository directly on GitHub to be able to use these changes into my XCode project with CocoaPods. So I have added this line in my podfile :

pod 'OneSignal', :git => 'https://github.com/fraxool/OneSignal-iOS-SDK.git'

I have installed it with the command pod install but I'm still not able to use the new methods I have added to the files on GitHub. Here is what I can see in my "Pods" directory, in XCode :

在此处输入图片说明

It seems like it is using the OneSignal.framework file from the GitHub repository, however, I have directly edited the source files located in the directory "OneSignal" ( here ), not "Framework".

So how could I fix that so I can use the changes from my repository into my XCode project ?

Thanks!

You will also need to make a commit with your new code compiled in the OneSignal.framework as cocoapods uses this instead of the source. It looks like you forgot the main compiled OneSignal binary

You may also need to update OneSignal.podspec to a new version and tag your latest commit with the same version number.

I also reviewed your commits, it should let you disable the auto resetting of the badge number by the SDK however the 'increase' option on OneSignal will no longer be accurate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM