isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = VR7L9Q5L2E;
INFOPLIST_FILE = FoodTracker/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = VR7L9Q5L2E;
INFOPLIST_FILE = FoodTracker/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
--- /dev/null
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# ------------------------------------------------------------------------
+# File Name: identity.py
+# Author: Zhao Yanbai
+# 2016-12-06 17:03:17 ζζδΊ CST
+# Description: none
+# ------------------------------------------------------------------------
+
+def VerifyId(ids) :
+ weight = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2]
+ validate = ['1','0','X','9','8','7','6','5','4','3','2']
+ if len(ids) != 18 :
+ return False;
+
+ Sum = 0
+ for i in range(17) :
+ Sum += weight[i] * int(ids[i])
+
+ if str(ids[-1]) != validate[Sum % 11] :
+ return False
+
+ return True