-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Specify Usage Instruction is only for Carthage #13
Comments
It won't work without that step even with CocoaPods. |
Ohh I thought it returned Got that part but then how do I go about the next step then? Do I need to install it through Carthage too? Or I just need to do I am not clear with the instructions to be honest |
Just checked README again & now I know the difference. It turns out https://cocoapods.org/pods/LaunchAtLogin README is different than Github README. CocoaPods step is missing there. I'll try & post the results. |
@sindresorhus I get another error
Its not able to find Anyways I tried the following as you told here LaunchAtLogin.isEnabled = true
print(LaunchAtLogin.isEnabled)
//=> false And it works properly. But I get 2 errors & 1 warning. 2 errors are of the above thing & 1 warning is #12 which I think is Okay. |
Hi @sindresorhus so my app is completed now & I put my Also, my application is now code signed as I checked it with
I did follow all the instructions in the README as follows -
platform :osx, '10.12'
target 'myApp' do
use_frameworks!
pod 'LaunchAtLogin'
end
But I still get the error cp: /Users/deadcoder0904/Library/Developer/Xcode/DerivedData/myApp-bcrytpktfvzflmexubmyosnhzksq/Build/Products/Debug/myApp.app/Contents/Frameworks/LaunchAtLogin.framework/Resources/LaunchAtLoginHelper.app: No such file or directory
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure Anything I should do to solve this? |
Made a simplest demo app to see if it works but it doesn't Here's the link - https://github.com/deadcoder0904/LaunchAtLoginPod |
Made a simplest demo app to see if it works with Carthage & it does 🎉 Here's the link - https://github.com/deadcoder0904/LaunchAtLoginCart @sindresorhus I asked someone else who used this library with CocoaPods & he's able to run it perfectly fine. Most important point, he cloned my project in the above comment & he didn't get any error. But not working for me at least. Anyways thank you for this awesome project. Its so much easier to use. Close this if you want and also let me know if you want me to open another issue about the error I have with CocoaPods stated above. |
Okay so I found the solution with the help of someone. The complete answer is posted on Stack Overflow here & I think @sindresorhus this can be put up on README as well. Also, for simplicity purposes I'll copy the answer here too just in case. Add a new "Run Script" below "[CP] Embed Pods Frameworks" in "Build Phases" with the absolute path to For simplicity, you can just drag & drop Thank you for making my life easy with your countless modules 🙌 |
Sorry, but this isn't a solution at all. What you did was nonsensical and merely made Xcode ignore the error due to the way the script was called, but the error still exists nevertheless: for some reason, LaunchAtLoginHelper.app is not being created, which is why the I'm commenting because the error is also happening to me and I would like to get to the bottom of this. To be clear, I'm using CocoaPods not Carthage. |
Maybe nonsensical but hey it works for me & my app so Idc 🤷♂️ |
I was getting error #7 when I pasted the script path in Build Phase & I was using Podfile so as a Swift noob I installed the pod but also did this as shown in the README👇
It works fine without it so I think it should be specified it is only required for Carthage & not needed for CocoaPods as it may confuse beginners like me.
The text was updated successfully, but these errors were encountered: