Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Resolved #13. Fixed the crash if no target attributes in the xcode project. #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eddy-lau
Copy link

No description provided.

@p4checo
Copy link
Member

p4checo commented Mar 18, 2018

Hi @eddy-lau 👋

Thanks for opening up #13 and this PR! 🙏
I'm curious, In what scenario(s) is the TargetAttributes dictionary nil?

Cheers! 🍻

@eddy-lau
Copy link
Author

In my case, the 'TargetAttributes' of the xcode project generated by the ionic framework is nil.

@p4checo
Copy link
Member

p4checo commented Mar 19, 2018

I see. That makes sense since we never had that issue with Xcode generated project files.

Even though we can fix the issue on the plugin, I think that the problem is caused by Ionic not properly generating the project file, don't you agree? Given this, perhaps you should also create an issue/file a bug on ionic framework 🐛😉

Additionally, have you tried opening up the project on Xcode after having generated it with Ionic (and before running cosigner), to see if the problem persists? (to test if Xcode fills in the missing information)

Cheers 🍻

@eddy-lau
Copy link
Author

Xcode can open the freshly created project without any problem, and Xcode doesn't fill up the missing information. (I tested with Xcode 9 only).
I created an example project for reference.

@p4checo
Copy link
Member

p4checo commented Mar 20, 2018

Thanks for testing that! It really is weird that Xcode doesn't fill the information up 🤔.
Have you also tried running the target via Xcode?

Anyway, I think we can merge this change, since it simply makes the plugins safer 😉
Just one note though, this plugin's functionality has been merged into fastlane, and is now available via the automatic_code_signing plugin.

Cheers!

Copy link
Member

@p4checo p4checo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks nice 👍
just please remove the version bump since we do that separately 😉

@@ -1,5 +1,5 @@
module Fastlane
module Cosigner
VERSION = "2.0.1"
VERSION = "2.0.2"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we typically do this on a separate commit, so please remove 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants