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

Cannot switch platform in Projeny Samples #60

Open
dogiordano opened this issue May 22, 2017 · 1 comment
Open

Cannot switch platform in Projeny Samples #60

dogiordano opened this issue May 22, 2017 · 1 comment

Comments

@dogiordano
Copy link

dogiordano commented May 22, 2017

I was following the Readme and installed projeny. I ran prj --init on the sample project. As soon as I use the menu item "Projeny -> Change Platform" I get the following error:
Projeny: Operation aborted. Projeny encountered errors when running 'Changing platform to 'XXX''. Details: [WinError 2] The system cannot find the file specified.
I'm on Unity 5.6.0.

I get the same error trying to change to every platform.
After the error I noticed that projects for other platforms have been created and, when I open them in Unity (through Project -> Open...), I get this:
Assertion failed on expression: '!AssetInterface::Get().IsLocked()' UnityEditor.EditorUserBuildSettings:SwitchActiveBuildTarget(BuildTarget) Projeny.Internal.ProjenyConfigValidator:VerifyPlatformIsCorrect() Projeny.Internal.ProjenyConfigValidator:VerifyProjenyConfig() Projeny.Internal.ProjenyConfigValidator:OnPostprocessAllAssets(String[], String[], String[], String[]) UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[])

twice, and than this:
`Projeny has detected an unexpected platform change.

Platforms should only be changed through Projeny and never through Unity's normal Build Settings dialog.

This is necessary to allow Projeny to include platform specific packages, quick platform switching, etc.

Projeny has switched the platform back to 'iOS'
UnityEngine.Debug:LogError(Object)
Projeny.Internal.ProjenyConfigValidator:VerifyPlatformIsCorrect()
Projeny.Internal.ProjenyConfigValidator:VerifyProjenyConfig()
Projeny.Internal.ProjenyConfigValidator:OnPostprocessAllAssets(String[], String[], String[], String[])
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[])`

Any idea why this is happening?

@andreiagmu
Copy link

I tested Projeny's sample project on Unity 2018.4.9f1, and the same error occurs to me when I try to switch platform via Projeny.
I installed Projeny's latest binary (v0.3.12).

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