Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: Ohms on January 25, 2016, 09:30:32 AM

Title: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Ohms on January 25, 2016, 09:30:32 AM
I am getting some exc_bad_access build errors in Xcode while trying to run a build for tvOS and was wondering if anyone is experiencing the same problem?  Incidentally, the iOS builds I have outputted work fine on iPhone/iPad and I have ran the standard unity example projects on the AppleTV (that don't use playmaker)  There were number of playmaker build errors I had to overcome when building for tvOS from unity but now that that is working, Xcode is causing problems.

I am using:
Unity V5.3.1
MacOS V10.10.5
Playmaker V1.7.8.2
Xcode 7.2
tvOS 9.1.1

Any help would be great :)

Thanks
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: jeanfabre on January 25, 2016, 10:59:51 PM
Hi,

 I don't own a tvOS so I can't test unfortunatly. Hopefully someone will step up and give more infos on this.

Have you tried to play with player settings? especially

-- ' Api Compatibility Level"
-- Strip engine code

 Bye,

 Jean
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Ohms on January 27, 2016, 05:46:50 AM
Hi Jean

I have tried those as you had suggested but I sill get the same error:

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

ArgumentException: Path is empty
  at System.Diagnostics.StackTrace.get_trace (System.Exception e, Int32 skipFrames, Boolean fNeedFileInfo) [0x00000] in <filename unknown>:0
  at System.IO.File.Exists (System.String path) [0x00000] in <filename unknown>:0
  at ES2FileStream.CreateStorageStream () [0x00000] in <filename unknown>:0
  at ES2FileStream.Store () [0x00000] in <filename unknown>:0
  at ES2.Save[T] (System.Collections.Generic.List`1 param, System.String identifier) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Actions.ArrayListEasySave.SaveArrayList () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Actions.ArrayListEasySave.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.OnEnter () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.UpdateStateChanges () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Start () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.ProcessEvent (HutongGames.PlayMaker.FsmEvent fsmEvent, HutongGames.PlayMaker.FsmEventData eventData) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Event (HutongGames.PlayMaker.FsmEventTarget eventTarget, HutongGames.PlayMaker.FsmEvent fsmEvent) [0x00000] in <filename unknown>:0
 
(Filename: currently not available on il2cpp Line: -1)

(lldb)
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Ohms on January 27, 2016, 06:46:23 AM
So it may actually be an easy save problem as I don't think they support tvOS...
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: jeanfabre on January 27, 2016, 06:55:39 AM
Hi,

 uhm... yes indeed.

 the usualy steps to make sure this is not a PlayMaker issue are the following:

1: fresh project, nothing! and publish a totally blank scene
2: import PlayMaker, still using a blank scene
3: put an fsm doing a very basic rotation or something
4: add other assets one after the other

you need to go trhough these steps to make sure you don't accumulate a series of problems and turn away from the problem due to misleading errors.

Bye,

 Jean
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: kavery on February 02, 2016, 01:14:04 PM
Has anyone had luck with apple TV? I'd like to try building to mine but I feel like it would be a big time investment.. plus I need to learn about Xcode. Before spending a week on this, vs. say getting touch mobile working.. it'd be cool to know if anyone has had success.

I'd be willing to contribute 1/2 toward getting Alex an apple TV .. If that would help PM diversity as a whole. I've been in a circle trying to find other avenues beyond PC builds and mobile. But if I know that's all I should focus on, I don't have a problem with that. Just seems like the Apple Tv could use more games.
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Lars Steenhoff on February 02, 2016, 01:45:17 PM
"Assets/PlayMaker Custom Actions/RectTransform/RectTransformContainsScreenPoint.cs(10,57): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?"



And many more of them, Apple tv seems to be different enough that playmaker wont run on it.  please let me know what i can do to help solve this problem
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: jeanfabre on February 03, 2016, 11:55:22 PM
Hi,

 Send a direct mail to Alex if you want to contribute to supporting AppleTv. This is a great initiative, thanks for the offer.

 Are you using the latest beta from Unity? and have you properly setup the PlayMaker dll platform settings ( select the PlayMaker dll in the plugins folder)?

 Bye,

 Jean
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: kavery on February 04, 2016, 02:27:24 PM
Yes if anyone else wants to help encourage or help Alex get a TV box please PM Alex with a donation offer! He would only need $50 more or so, so even 5 or 10 would make a big difference! 
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: jeanfabre on February 04, 2016, 10:37:17 PM
Hi,

 I made a trello task for people to express their will to donate:

https://trello.com/c/ZJMjnUhY/165-apple-tv-hardware-purchase

Bye,

 Jean
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Alex Chouls on February 06, 2016, 01:09:03 PM
I picked up an Apple TV, so hopefully we should have an update to fix build errors soon...
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Lars Steenhoff on February 06, 2016, 03:09:39 PM
 :)  Happy to hear !

and enjoy it  8), It's really nice what unity can do on the big screen.
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Alex Chouls on February 07, 2016, 10:16:08 PM
I'm still waiting on a USB C cable from Amazon to deploy to the device, but the build errors all seemed to be with MovieTexture actions. You could try removing those actions to test a build. I'll let you know when I get a build running on the device...
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Alex Chouls on February 10, 2016, 02:51:35 PM
Ok, I was able to build to Apple TV. It seems like MovieTextures are not supported yet. I've attached a unitypackage that fixes incompatible actions.
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: Lars Steenhoff on February 13, 2016, 02:51:06 AM
Thanks Alex!

This is great  :)
Title: Re: Apple TV, tvOS, Xcode build errors
Post by: jeanfabre on February 14, 2016, 11:47:52 PM
Hi,

 also, now I think this patch is included on the Asset Store version, so try first with the latest verison of PlayMaker.

Bye,

 Jean
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Lars Steenhoff on February 23, 2016, 07:54:34 PM
Alex did you deploy on the device without errors?

I just tried building to Apple tv with unity 5.4.0.b7 and Xcode Version 7.3 beta 3

I used playmaker from the asset store and applied the patch you made earlier.

any idea what I could be doing wrong?

Quote
PlayerSettings Validation: Requested build target group (15) doesn't exist; #define symbols for scripting won't be added.
UnityEditor.PlayerSettings:SetScriptingDefineSymbolsForGroup(BuildTargetGroup, String)

Quote
Assets/PlayMaker/Actions/ActivateGameObject.cs(9,43): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Alex Chouls on February 23, 2016, 08:35:49 PM
Hi, yeah I deployed to the device without errors.

From the error it seems like it could be a problem with build platforms defined in the 5.4 beta. You can delete PlaymakerDefines.cs to bypass that error which is probably causing the other errors...
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Lars Steenhoff on February 24, 2016, 04:18:50 AM
I deleted the PlaymakerDefines.cs and that error is no longer showing,

the other errors are still there:

Quote
Assets/PlayMaker/Actions/ActivateGameObject.cs(9,43): error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?

and a couple more in the list, I will see of I can delete more until the errors stop.


I'm using tvOS 9.2 beta 3, don't know if that has anything to do with it.
I can build to it without playmaker installed.
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Alex Chouls on February 24, 2016, 09:41:17 AM
"The type or namespace name `FsmStateAction' could not be found" means the Playmaker dlls are not loaded. Check your plugin import settings. Select Assets\Plugins\PlayMaker\PlayMaker.dll and make sure tvOS is checked.

Are you able to build in 5.3? There could be issues with the 5.4 beta.
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Lars Steenhoff on February 24, 2016, 04:08:52 PM
Yes you are correct, for some reason the tvOS check box was disabled on the playmaker.dll

Thanks for pointing me in the right direction I would not have found it there.

Now it's working :)


I only have a minor warning in the unity console

Quote
SetLogCallbackDefined is not allowed to be called during serialization, call it from Awake or Start instead. Called from script 'FsmEditorWindow' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.Application:add_logMessageReceived(LogCallback)
HutongGames.PlayMakerEditor.FsmDebugger:.ctor() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmDebugger.cs:51)
HutongGames.PlayMakerEditor.FsmDebugger:.cctor() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmDebugger.cs:22)



I did delete PlayMakerDefines.cs that cleared up the other warnings.
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Lars Steenhoff on February 28, 2016, 05:23:22 AM
Any Idea how I can remove this warning?


Quote
SetLogCallbackDefined is not allowed to be called during serialization, call it from Awake or Start instead. Called from script 'FsmEditorWindow' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.Application:add_logMessageReceived(LogCallback)
HutongGames.PlayMakerEditor.FsmDebugger:.ctor() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmDebugger.cs:51)
HutongGames.PlayMakerEditor.FsmDebugger:.cctor() (at c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Editor/Classes/FsmDebugger.cs:22)
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: addonsolutions on March 10, 2016, 12:56:20 AM
Has anybody had fortunes with apple TV? I'd like to take a stab at working to mine yet I have a feeling that it would be a big deal venture.. besides I have to find out about Xcode. Before spending a week on this, versus say getting touch versatile working.. it'd be cool to know whether anybody has had achievement.
Title: Re: Apple TV, tvOS, Xcode build errors[SOLVED]
Post by: Lars Steenhoff on March 15, 2016, 04:23:05 PM
@addonsolutions

Yes I can get playmaker to work quite nicely on apple tv with the latest playmaker beta.