omnigroup/OmniGroup

Build failed in (OmniGroup/Tools/FixStringsFile)

Opened this issue · 5 comments

I'm unable to build, and eventually test by running "Text Editor" example.

My-MacBook-Pro:OmniGroup me$ ./Scripts/Build Frameworks
Now in: /Users/me/Downloads
2013-03-26 12:33:15.874 defaults[1535:707] 
The domain/default pair of (/Users/me/Library/Preferences/com.apple.Xcode, PBXProductDirectory) does not exist
Warning: PBXProductDirectory not defined in Xcode, using /Users/Shared/me/Products
2013-03-26 12:33:15.921 defaults[1537:707] 
The domain/default pair of (/Users/me/Library/Preferences/com.apple.Xcode, PBXIntermediatesDirectory) does not exist
Warning: PBXIntermediatesDirectory not defined in Xcode, using /Users/Shared/me/Products/Builds
BUILD_ACTION=
#
# Tue Mar 26 12:33:16 PKT 2013
# Starting build of Frameworks
# BUILD_CONFIGURATION=Debug
#
Building FixStringsFile (OmniGroup/Tools/FixStringsFile)
+./Scripts/Build:136> xcodebuild 'DSTROOT=/' 'SYMROOT=/Users/Shared/me/Products' 'OBJROOT=/Users/Shared/me/Products/Builds' 'OMNI_INSTALLED_PRODUCTS=' 'OMNI_FRAMEWORK_TARGET_PATH=/Users/Shared/me/Products/Debug' -configuration Debug -project FixStringsFile.xcodeproj
Build settings from command line:
    DSTROOT = /
    OBJROOT = /Users/Shared/me/Products/Builds
    OMNI_FRAMEWORK_TARGET_PATH = /Users/Shared/me/Products/Debug
    OMNI_INSTALLED_PRODUCTS = 
    SYMROOT = /Users/Shared/me/Products

=== BUILD NATIVE TARGET FixStringsFile OF PROJECT FixStringsFile WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: The identity 'Mac Developer:' doesn't match any valid, non-expired certificate/private key pair in your keychains


** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
Build failed in  (OmniGroup/Tools/FixStringsFile)
tjw commented

I should probably remove that build script, or deemphasize it in the README, since the best way to build and run the Text Editor is via the Xcode workspace.

Does the workspace work for you?

tjw commented

Oh, also, it looks like you maybe don't have your developer certificate set up anyway, so the workspace build may fail:

Code Sign error: The identity 'Mac Developer:' doesn't match any valid, non-expired certificate/private key pair in your keychains

tjw commented

OK, one more possible thing to explore. Maybe you only have an iOS developer certificate set up? We always have both iOS and Mac developer certificates. If you are only doing iOS development, you might try commenting out this line in OmniGroup/Configurations/Target-Mac-Common.xcconfig:

OMNI_MAC_CODE_SIGN_IDENTITY = Mac Developer:

The build failure above is when a Mac helper tool is being built (which doesn't really need to be signed, but we just default to signing all our builds).

I've tried Build using TextEditor.xcworkspace, but I still get the following issues:

Lexical or Preprocessor Issue 'OmniFoundation/OFObject.h' file not found

/Users/me/Library/Developer/Xcode/DerivedData/TextEditor-eptpuliexaeapqdhcyzhbmvzluqu/Build/Products/Debug-iphonesimulator/include/OmniAppKit/NSFileWrapper-OAExtensions.h:10:9: 'OmniFoundation/OFFileWrapper.h' file not found

/Users/me/Library/Developer/Xcode/DerivedData/TextEditor-eptpuliexaeapqdhcyzhbmvzluqu/Build/Products/Debug-iphonesimulator/include/OmniQuartz/OQColor.h:10:9: 'OmniFoundation/OFObject.h' file not found

I just downloaded the framework today (2013-06-06). After commenting out the OMNI_MAC_CODE_SIGN_IDENTITY I was able to build and run the TextEditor project just fine. There was a blue warning in OAParagraphStyle.m though. Something like "Instance variable used while 'self' is not set to the result of...". But it doesn't appear to have a negative impact on anything.