tidev / titanium-identity

A collection of API's to authenticate with your device: Keychain/Keystore, Touch ID and Face ID

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't build iOS module

dfreniche opened this issue · comments

  • from ios folder, I do appc ti build -p ios --build-only

This is what I get. Using Xcode Version 9.3 (9E145)

Appcelerator Command-Line Interface, version 7.0.3
Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.

2018-5-4 09:52:41

Operating System
  Name                        = Mac OS X
  Version                     = 10.13.4
  Architecture                = 64bit
  # CPUs                      = 8
  Memory                      = 17179869184

Node.js
  Node.js Version             = 8.9.1
  npm Version                 = 5.7.1

Titanium CLI
  CLI Version                 = 5.1.0

Titanium SDK
  SDK Version                 = 7.1.0.GA
  SDK Path                    = /Users/dfreniche/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.GA
  Target Platform             = iphone

Command
  /usr/local/bin/node /Users/dfreniche/.appcelerator/install/7.0.3/package/node_modules/titanium/lib/titanium.js build -p ios --build-only --config-file /var/folders/5t/jfq69hm15rj90mbq6hyyk1040000gp/T/build-1525420354526.json --log-level info --no-banner --project-dir /Users/dfreniche/Teamwork/appcelerator-stuff/titanium-identity/ios

[INFO]  Project directory: /Users/dfreniche/Teamwork/appcelerator-stuff/titanium-identity/ios
[INFO]  Module ID: ti.identity
[ERROR] [xcode-dist] ** BUILD FAILED **
[ERROR] [xcode-dist] The following build commands failed:
[ERROR] [xcode-dist] 	CompileC build/titanium-identity.build/Release-iphoneos/titanium-identity.build/Objects-normal/arm64/TiIdentityModule.o Classes/TiIdentityModule.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] [xcode-dist] 	CompileC build/titanium-identity.build/Release-iphoneos/titanium-identity.build/Objects-normal/armv7/TiIdentityModule.o Classes/TiIdentityModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] [xcode-dist] 	CompileC build/titanium-identity.build/Release-iphoneos/titanium-identity.build/Objects-normal/armv7/TiIdentityKeychainItemProxy.o Classes/TiIdentityKeychainItemProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] [xcode-dist] 	CompileC build/titanium-identity.build/Release-iphoneos/titanium-identity.build/Objects-normal/arm64/TiIdentityKeychainItemProxy.o Classes/TiIdentityKeychainItemProxy.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] [xcode-dist] (4 failures)

Any ideas? Thanks!

Can you attach a trace log? appc ti build -p ios --build-only -l trace

Trace file attached via appc ti build -p ios --build-only -l trace > trace.txt 2>&1

trace.txt

The error is TiModule.h' file not found which means that the SDK declared in titanium.xcconfig cannot be found. Change it to an SDK that is available on your machine and it will work.

Perfect! Thanks! Maybe worth a README update?

It's a common procedure for every iOS project. Maybe add it to a guide?

I have same issue although I have a pointer to right and existend SDK

TITANIUM_SDK_VERSION = 8.3.1.GA
TITANIUM_SDK = "/Users/fuerst/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA/"
TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include"
TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore"
TITANIUM_BASE_SDK3 = "$(TITANIUM_SDK)/iphone/include/JavaScriptCore"
HEADER_SEARCH_PATHS = $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) $(TITANIUM_BASE_SDK3)
FRAMEWORK_SEARCH_PATHS = $(inherited) "$(TITANIUM_SDK)/iphone/Frameworks"

And underneath /Users/fuerst/Library/Application Support/Titanium/mobilesdk/osx/8.3.1.GA/iphone/include/ I see the header file. I'm confused.

@AppWerft just checked with latest version of this module. At 1st it fails, because in titanium.xcconfig file you'll see:

TITANIUM_SDK_VERSION = 9.0.0.v20200205142057

I've just changed it into

TITANIUM_SDK_VERSION = 8.3.1.GA

I haven't changed TITANIUM_SDK so mine look like:

TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)

In short, to test this I just did:

  • appc ti sdk select
  • select 8.3.1.GA SDK
  • edit titanium.xcconfig
  • cd ios
  • appc ti build -p ios --build-only -l trace

It worked