Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28392] iOS: Building the source .xcodeproj fails every 2nd time

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 10.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeUnknown
Created2021-03-13T13:54:09.000+0000
Updated2021-03-13T14:02:27.000+0000

Description

Since a while, the Titanium source project runs a ["scons.js"](https://github.com/appcelerator/titanium_mobile/blob/master/build/scons-xcode-project-build.js) on every build step, which is (a) slowing down the build * and (b) causing a build failure every 2nd time:
CodeSign /Users/user/Library/Developer/Xcode/DerivedData/Titanium-gvpsqrupwkgnlndxeebdrcxjaktk/Build/Products/Debug-iphonesimulator/Titanium.app/Frameworks/TitaniumKit.framework (in target 'Titanium' from project 'Titanium')
    cd /Users/user/Documents/dev/titanium/titanium_mobile/iphone/iphone
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    
Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp\=none --preserve-metadata\=identifier,entitlements,flags /Users/user/Library/Developer/Xcode/DerivedData/Titanium-gvpsqrupwkgnlndxeebdrcxjaktk/Build/Products/Debug-iphonesimulator/Titanium.app/Frameworks/TitaniumKit.framework

/Users/user/Library/Developer/Xcode/DerivedData/Titanium-gvpsqrupwkgnlndxeebdrcxjaktk/Build/Products/Debug-iphonesimulator/Titanium.app/Frameworks/TitaniumKit.framework: bundle format unrecognized, invalid, or unsuitable
Command CodeSign failed with a nonzero exit code
This is a regression from earlier versions. Not sure when this was broken, but Chris changed a lot last year for the macOS support. * The build time on a recurring build is 500ms without the scons script and 6-8s with it. This is really bad, especially when no JS or resources changed at all, which is the normal case for native app debugging

Comments

No comments

JSON Source