{"action":"created","issue":{"url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/42","labels_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/42/comments","events_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/42/events","html_url":"https://github.com/googlesamples/cardboard-unity/issues/42","id":91423859,"number":42,"title":"Problems Compiling with IL2CPP","user":{"login":"nosmirck","id":6027290,"avatar_url":"https://avatars.githubusercontent.com/u/6027290?v=3","gravatar_id":"","url":"https://api.github.com/users/nosmirck","html_url":"https://github.com/nosmirck","followers_url":"https://api.github.com/users/nosmirck/followers","following_url":"https://api.github.com/users/nosmirck/following{/other_user}","gists_url":"https://api.github.com/users/nosmirck/gists{/gist_id}","starred_url":"https://api.github.com/users/nosmirck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosmirck/subscriptions","organizations_url":"https://api.github.com/users/nosmirck/orgs","repos_url":"https://api.github.com/users/nosmirck/repos","events_url":"https://api.github.com/users/nosmirck/events{/privacy}","received_events_url":"https://api.github.com/users/nosmirck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-27T06:25:35Z","updated_at":"2015-06-27T06:53:11Z","closed_at":null,"body":"Hi, I've been trying to compile my App for iOS, since a few weeks now iOS is forcing everyone to upload the new apps and updates with 64bit support, so, Unity has a new way to compile for iOS called IL2CPP. If you want support for both 32 and 64 bits, you must check \"Universal\".\r\n\r\nThe thing is that I am Using Unity 4.6.6f1 (pro) with the latest cardboard plugin. If I compile with Mono 2.x it works like a charm, everything work perfectly, even on iPad 2, it renders smaller to fit the cardboard. I can even run the app with iOS 7.1. I tried to upload to the appstore and apple rejected immediately the submission because it didn't have 64bits support.\r\n\r\nThen I just went to the player settings, compiled with IL2CPP Universal, disabled the striping level (just in case) and went to Xcode to test. The result: 1 error and I can't find ANYTHING about it ANYWHERE. Google shows 0 results. I don't really know if this is related to Unity only (something they have done wrong) if I'm missing something (maybe some Xcode stuff I didn't do correctly) or related to the plugin... anyways, if anyone here can help me solve this I'll gladly appreciate it.\r\n\r\nMore info:\r\n- I followed the steps just like the instructions said (added CoreText, libc++, added resources.bundle)\r\n- The project doesn't have any other plugins (except only for one to reproduce videos, \"mobile movie texture\" latest version)\r\n- The error is this:\r\n```\r\nld: 64-bit LDR/STR not 8-byte aligned: from l005 (0x100D1D540) to l036@0x00001304 (0x100ED4774) in 'l005' from /Users/nosmirck/Desktop/build/Libraries/libplatform.a(RotateToLandscapeViewController.o) for architecture arm64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\n\r\nThanks in advance guys!\r\n\r\nBest Regards,\r\n\r\nLuis."},"comment":{"url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/comments/115975682","html_url":"https://github.com/googlesamples/cardboard-unity/issues/42#issuecomment-115975682","issue_url":"https://api.github.com/repos/googlesamples/cardboard-unity/issues/42","id":115975682,"user":{"login":"lesmo","id":2228196,"avatar_url":"https://avatars.githubusercontent.com/u/2228196?v=3","gravatar_id":"","url":"https://api.github.com/users/lesmo","html_url":"https://github.com/lesmo","followers_url":"https://api.github.com/users/lesmo/followers","following_url":"https://api.github.com/users/lesmo/following{/other_user}","gists_url":"https://api.github.com/users/lesmo/gists{/gist_id}","starred_url":"https://api.github.com/users/lesmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesmo/subscriptions","organizations_url":"https://api.github.com/users/lesmo/orgs","repos_url":"https://api.github.com/users/lesmo/repos","events_url":"https://api.github.com/users/lesmo/events{/privacy}","received_events_url":"https://api.github.com/users/lesmo/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T06:53:11Z","updated_at":"2015-06-27T06:53:11Z","body":"So... I've had a similar issue with libPhone.a so maybe you could try this:\ncheck that libplatform.a is in fact in the project's linked frameworks and\nlibraries. If it's already there, remove it and add it back again.\n\nEl sáb., jun. 27, 2015 1:25 AM, Luis Pulido <notifications@github.com>\nescribió:\n\n> Hi, I've been trying to compile my App for iOS, since a few weeks now iOS\n> is forcing everyone to upload the new apps and updates with 64bit support,\n> so, Unity has a new way to compile for iOS called IL2CPP. If you want\n> support for both 32 and 64 bits, you must check \"Universal\".\n>\n> The thing is that I am Using Unity 4.6.6f1 (pro) with the latest cardboard\n> plugin. If I compile with Mono 2.x it works like a charm, everything work\n> perfectly, even on iPad 2, it renders smaller to fit the cardboard. I can\n> even run the app with iOS 7.1. I tried to upload to the appstore and apple\n> rejected immediately the submission because it didn't have 64bits support.\n>\n> Then I just went to the player settings, compiled with IL2CPP Universal,\n> disabled the striping level (just in case) and went to Xcode to test. The\n> result: 1 error and I can't find ANYTHING about it ANYWHERE. Google shows 0\n> results. I don't really know if this is related to Unity only (something\n> they have done wrong) if I'm missing something (maybe some Xcode stuff I\n> didn't do correctly) or related to the plugin... anyways, if anyone here\n> can help me solve this I'll gladly appreciate it.\n>\n> More info:\n>\n>    - I followed the steps just like the instructions said (added\n>    CoreText, libc++, added resources.bundle)\n>    - The project doesn't have any other plugins (except only for one to\n>    reproduce videos, \"mobile movie texture\" latest version)\n>    - The error is this:\n>\n> ld: 64-bit LDR/STR not 8-byte aligned: from l005 (0x100D1D540) to l036@0x00001304 (0x100ED4774) in 'l005' from /Users/nosmirck/Desktop/build/Libraries/libplatform.a(RotateToLandscapeViewController.o) for architecture arm64\n> clang: error: linker command failed with exit code 1 (use -v to see invocation)\n>\n> Thanks in advance guys!\n>\n> Best Regards,\n>\n> Luis.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/googlesamples/cardboard-unity/issues/42>.\n>\n"}}