iMessageStickerUnity
iMessageStickerUnity copied to clipboard
Can't build on Xcode, no such file or directory error
I got this error after using your plugin error: /Users/User/Library/Developer/Xcode/DerivedData/Unity-iPhone-gvttajoivpvyzcdcgyqgrpcvstmn/Build/Products/ReleaseForRunning-iphoneos/Unity-iPhone-Stickers.appex: No such file or directory
After that I decided to delete the plugin in Unity and add sticker manually in Xcode. It works well at first, but after I build from unity to Xcode, the error show up again? Seems that the plugin is not removed completely from unity? I have delete the whole stickers folder from your plugin.
Pls help me to solve the problem. It has stuck me for 2 days.
Hey I'm having this issue too, any updates?
I need more information regarding how to produce this error. I have not seen it before and I don't know how to get it.
@MccaMorgan I used unity 2017.1.0f3, I seems that I need to add dependency manually in Xcode to make it build successfully. But every time I build from unity to Xcode, the dependency gone and I need to add it again. It's very annoying.
@tobytaro Can you tell more infos please? You made it build success by adding which dependency?
@Skjalgsm We are trying to use this Toolkit too,what information do you need?
I need to get a way to reproduce this error on my machine. Preferably a unity project with stickers set up. And i need to know which unity version, which mac version and which xcode version is being used.
On Fri, 24 Nov 2017 at 08:33, kaka12300wu [email protected] wrote:
@Skjalgsm https://github.com/skjalgsm We are trying to use this Toolkit too,what information do you need?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/agens-no/iMessageStickerUnity/issues/22#issuecomment-346760732, or mute the thread https://github.com/notifications/unsubscribe-auth/AAitDfz8kBXhXtlfchmOfP8ft2akthZ9ks5s5nErgaJpZM4QeS6s .
@Skjalgsm for some reasone I can not provide the Unity project,our Unity Version is 5.4.5P3,Xcode Version is 8.2.1,and our project is using XUporter,included xcodeapi from Unity. It seems this issue is similar with ours: https://answers.unity.com/questions/938476/empty-project-empty-apple-watch-does-not-compile-i.html
I have now made an update to this plugin. It requires that you redo your Xcode generation from unity in order to work. Can you please test to see if it works for you now?
Closing this issue now as I believe it to be fixed. please reopen again if you can't get it to work.
Hey there,
The issue still persists, but I did a bit of digging and found a connection to issue #10
Everybody who has this problem, probably uses some other script/plugin that changes the dependencies. With your plain vanilla project I had no problems building and running the project, but with my main project it just didn't work. The reason for this, is that the dependency in the build phases is lost. Here is what you need to do:
This is also what tobytaro pointed out as well as M0rph3v5. I just needed a visual clue to understand what they mean. I hope this helps others :)
Hello.
When I try the above workaround I get this error message:
:-1: Cycle in dependencies between targets 'Unity-iPhone' and 'Unity-iPhone-Stickers'; building could produce unreliable results. Cycle path: Unity-iPhone → Unity-iPhone-Stickers → Unity-iPhone
Any ideas?
Help appreciated.
Simon
Hey. I'm a bit panicking since I can't get the plugin to build anymore and I need to submit to Apple this week. We are still stuck at the same spot not being able to use the workaround because of the cycle issue mentioned above. Does anyone have an idea? We are using XCODE 10 and Unity 2017.4.1f1.
Thanks!
Hi Simon,
did you try using the plugin in a plain project? This would assure that your setup should be working as expected. If that is the case, my guess is that you're using some other plugin that is called after the iMessageSticker PostProcess Build and overwrites the changes. Search for PostProcessBuild
in other scripts. iMessageSticker uses the attribute here: https://github.com/agens-no/iMessageStickerUnity/blob/master/Assets/Stickers/Editor/StickersBuildPostProcess.cs Maybe changing the value to something high like 900000 so the step is called last might fix the problem.
Hi. I really appreciate you trying to help me!! I just tried the fix and at the same time tried to build the plain project. I now get this error in XCODE. Do you have any idea what is happening?
CodeSign /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-fobqiyvsdutjhfemnwaibqnqbzek/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Unity-iPhone-Stickers.appex (in target: Unity-iPhone-Stickers) cd /Users/admin/Documents/xcodeStickerPure000 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "iPhone Developer: Simon XXXXX(Q9RN95)" Provisioning Profile: "iOS Team Provisioning Profile: *" (5__726-988e--af53-__)
/usr/bin/codesign --force --sign 2D5605D8CAECE8F97CAB271B0340F3B0D2FEEB92 --entitlements /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-fobqiyvsdutjhfemnwaibqnqbzek/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone-Stickers.build/Unity-iPhone-Stickers.appex.xcent --timestamp=none /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-fobqiyvsdutjhfemnwaibqnqbzek/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Unity-iPhone-Stickers.appex
/Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-fobqiyvsdutjhfemnwaibqnqbzek/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Unity-iPhone-Stickers.appex: replacing existing signature /Users/admin/Library/Developer/Xcode/DerivedData/Unity-iPhone-fobqiyvsdutjhfemnwaibqnqbzek/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Unity-iPhone-Stickers.appex: errSecInternalComponent Command CodeSign failed with a nonzero exit code
Sounds like a signing problem... Did you create a provision profile for your stickers? It is your appname with a ".stickers" at the end, like "com.company.title.stickers". You might also need to set that provisioning profile in XCode for the stickers pack.
You're tip concerning the post process build order WAS right! Xcode 10 was the issue. I googled the Command CodeSign failed with a nonzero exit code error and found a forum post which told me to update Xcode to 10.1. Worked! Thanks so much!