Open na1ya opened 10 years ago
The issue here is that the python script tries to open the frameworks containing folder, which obviously fails on the server. You need to make sure the open_build_dir function in the targets build script does not try to open the file. (E.g. Comment it out)
I have a fix flying around somewhere but won't be able to check before I'm back home...
Best, moritz
Sent from my iPhone
On 25 Dec 2013, at 20:55, na1ya notifications@github.com wrote:
Everything works perfect when built using XCode, but fails when built using XCode Integration Server. Compilation succeeds, tests succeed, but the whole job fails. Help!
UFW (M iphoneos): INFO: Build completed UFW (M iphoneos): INFO: Built framework is in /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts UFW (M iphoneos): INFO: Cmd open /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts UFW (M iphoneos): INFO: LSOpenURLsWithRole() failed with error -10810 for the file /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts.
Traceback (most recent call last): File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 830, in open_build_dir() File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 609, in open_build_dir print_and_call(['open', os.environ['TARGET_BUILD_DIR']]) File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 522, in print_and_call raise subprocess.CalledProcessError(p.returncode, cmd) subprocess.CalledProcessError: Command '['open', '/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts']' returned non-zero exit status 1 Showing first 200 notices only Command /bin/sh failed with exit code 1
\ ARCHIVE FAILED **
The following build commands failed: PhaseScriptExecution Run\ Script /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh (1 failure)
— Reply to this email directly or view it on GitHub.
Did you guys come to an answer for this?
Everything works perfect when built using XCode, but fails when built using XCode Integration Server. Compilation succeeds, tests succeed, but the whole job fails. Help!
UFW (M iphoneos): INFO: Build completed UFW (M iphoneos): INFO: Built framework is in /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts UFW (M iphoneos): INFO: Cmd open /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts UFW (M iphoneos): INFO: LSOpenURLsWithRole() failed with error -10810 for the file /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts.
Traceback (most recent call last): File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 830, in
open_build_dir()
File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 609, in open_build_dir
print_and_call(['open', os.environ['TARGET_BUILD_DIR']])
File "/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh", line 522, in print_and_call
raise subprocess.CalledProcessError(p.returncode, cmd)
subprocess.CalledProcessError: Command '['open', '/Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/UninstalledProducts']' returned non-zero exit status 1
Showing first 200 notices only
Command /bin/sh failed with exit code 1
\ ARCHIVE FAILED **
The following build commands failed: PhaseScriptExecution Run\ Script /Library/Server/Xcode/Data/BotRuns/Cache/c5f9218a-a724-a724-73c4-d497d0f69035/DerivedData/Build/Intermediates/ArchiveIntermediates/MyTestFramework/IntermediateBuildFilesPath/MyTestFramework.build/Release-iphoneos/MyTestFramework.build/Script-21E7FA0C186B5EE800E94D0B.sh (1 failure)