iMessageStickerUnity icon indicating copy to clipboard operation
iMessageStickerUnity copied to clipboard

Can't build on Xcode, no such file or directory error

Open tobytaro opened this issue 7 years ago • 16 comments

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.

tobytaro avatar Nov 15 '17 02:11 tobytaro

Hey I'm having this issue too, any updates?

MccaMorgan avatar Nov 16 '17 23:11 MccaMorgan

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.

skjalgsm avatar Nov 16 '17 23:11 skjalgsm

@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 avatar Nov 17 '17 02:11 tobytaro

@tobytaro Can you tell more infos please? You made it build success by adding which dependency?

kaka12300wu avatar Nov 24 '17 07:11 kaka12300wu

@Skjalgsm We are trying to use this Toolkit too,what information do you need?

kaka12300wu avatar Nov 24 '17 07:11 kaka12300wu

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 avatar Nov 24 '17 07:11 skjalgsm

@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

kaka12300wu avatar Nov 24 '17 07:11 kaka12300wu

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?

skjalgsm avatar Nov 30 '17 09:11 skjalgsm

Closing this issue now as I believe it to be fixed. please reopen again if you can't get it to work.

skjalgsm avatar Dec 04 '17 15:12 skjalgsm

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: screen shot 2018-01-12 at 11 03 08

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 :)

JohannesDeml avatar Jan 12 '18 10:01 JohannesDeml

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

firepunchd avatar Jan 06 '19 14:01 firepunchd

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!

firepunchd avatar Jan 16 '19 15:01 firepunchd

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.

JohannesDeml avatar Jan 17 '19 10:01 JohannesDeml

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

firepunchd avatar Jan 17 '19 11:01 firepunchd

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.

JohannesDeml avatar Jan 17 '19 14:01 JohannesDeml

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!

firepunchd avatar Jan 17 '19 15:01 firepunchd