Commit a494486d authored by 曹云霄's avatar 曹云霄

debug

parent d4365b60
...@@ -337,6 +337,7 @@ ...@@ -337,6 +337,7 @@
TargetAttributes = { TargetAttributes = {
29CF91721D66B8CC00AE13A8 = { 29CF91721D66B8CC00AE13A8 = {
CreatedOnToolsVersion = 7.2; CreatedOnToolsVersion = 7.2;
DevelopmentTeam = 39XYE6VSP8;
}; };
}; };
}; };
...@@ -547,7 +548,8 @@ ...@@ -547,7 +548,8 @@
baseConfigurationReference = 2A3092547F488EFD2FBE5F24 /* Pods.debug.xcconfig */; baseConfigurationReference = 2A3092547F488EFD2FBE5F24 /* Pods.debug.xcconfig */;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer: 云霄 曹 (WM8ZU7YY98)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: 云霄 曹 (WM8ZU7YY98)";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PREFIX_HEADER = "$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch";
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
...@@ -564,8 +566,9 @@ ...@@ -564,8 +566,9 @@
INFOPLIST_FILE = Palmwms/Info.plist; INFOPLIST_FILE = Palmwms/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0; IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.palmwms; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.palmmall;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "df541a2c-b94a-4874-904a-04e7843bc5ab";
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
}; };
name = Debug; name = Debug;
...@@ -575,7 +578,8 @@ ...@@ -575,7 +578,8 @@
baseConfigurationReference = B94AB6672F835AEC7D22B9F4 /* Pods.release.xcconfig */; baseConfigurationReference = B94AB6672F835AEC7D22B9F4 /* Pods.release.xcconfig */;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer: 云霄 曹 (WM8ZU7YY98)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: 云霄 曹 (WM8ZU7YY98)";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
GCC_PREFIX_HEADER = "$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch"; GCC_PREFIX_HEADER = "$(SRCROOT)/Palmwms/Tools/Macro/PrefixHeader.pch";
HEADER_SEARCH_PATHS = ( HEADER_SEARCH_PATHS = (
...@@ -592,8 +596,9 @@ ...@@ -592,8 +596,9 @@
INFOPLIST_FILE = Palmwms/Info.plist; INFOPLIST_FILE = Palmwms/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0; IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.palmwms; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.palmmall;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "df541a2c-b94a-4874-904a-04e7843bc5ab";
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**"; USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
}; };
name = Release; name = Release;
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
[self detectionNetwork]; [self detectionNetwork];
[self setIQKeyboardManager]; [self setIQKeyboardManager];
[self setRootViewController];
[self startBaiduMapManager]; [self startBaiduMapManager];
[self setRootViewController];
return YES; return YES;
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
//取出账户密码 //取出账户密码
self.userNameTextField.text = [SSKeychain passwordForService:SERVICENAME account:SAVEACCOUNT]; self.userNameTextField.text = [SSKeychain passwordForService:SERVICENAME account:SAVEACCOUNT];
self.passWordTextField.text = [SSKeychain passwordForService:SERVICENAME account:SAVEPASSWORD]; self.passWordTextField.text = [SSKeychain passwordForService:SERVICENAME account:SAVEPASSWORD];
[self changeColor:[UITextField new]];
if ([self.userNameTextField.text length]) { if ([self.userNameTextField.text length]) {
[self changeColor:self.userNameTextField]; [self changeColor:self.userNameTextField];
} }
......
...@@ -183,8 +183,10 @@ ...@@ -183,8 +183,10 @@
UITableViewCell *selectCell = [tableView cellForRowAtIndexPath:self.selectIndexPath]; UITableViewCell *selectCell = [tableView cellForRowAtIndexPath:self.selectIndexPath];
selectCell.accessoryType = UITableViewCellAccessoryNone; selectCell.accessoryType = UITableViewCellAccessoryNone;
self.navigationItem.rightBarButtonItem.enabled = false; self.navigationItem.rightBarButtonItem.enabled = false;
if (self.selectIndexPath == indexPath) {
self.selectIndexPath = nil;return; self.selectIndexPath = nil;return;
} }
}
//更新记录,选中点击的cell //更新记录,选中点击的cell
self.selectIndexPath = indexPath; self.selectIndexPath = indexPath;
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
......
...@@ -2,19 +2,10 @@ ...@@ -2,19 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>NSLocationAlwaysUsageDescription</key>
<string></string>
<key>CFBundleDisplayName</key>
<string>旺盛</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIStatusBarHidden</key>
<true/>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleDisplayName</key>
<string>旺盛</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string> <string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
...@@ -33,6 +24,13 @@ ...@@ -33,6 +24,13 @@
<string>1</string> <string>1</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSLocationAlwaysUsageDescription</key>
<string></string>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
<string>LaunchScreen</string> <string>LaunchScreen</string>
<key>UIMainStoryboardFile</key> <key>UIMainStoryboardFile</key>
...@@ -41,6 +39,8 @@ ...@@ -41,6 +39,8 @@
<array> <array>
<string>armv7</string> <string>armv7</string>
</array> </array>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
......
from optparse import OptionParser
import subprocess
import requests
#configuration for iOS build setting
CODE_SIGN_IDENTITY = "iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
PROVISIONING_PROFILE = "df541a2c-b94a-4874-904a-04e7843bc5ab"
CONFIGURATION = "Release"
SDK = "iphoneos"
# configuration for pgyer
PGYER_UPLOAD_URL = "http://www.pgyer.com/apiv1/app/upload"
DOWNLOAD_BASE_URL = "http://www.pgyer.com"
USER_KEY = "a6283ec42bbaf9efc5b6f01a750299f3"
API_KEY = "f9aefb343ecc7959f8e216ed08db1c83"
def cleanBuildDir(buildDir):
cleanCmd = "rm -r %s" %(buildDir)
process = subprocess.Popen(cleanCmd, shell = True)
process.wait()
print "cleaned buildDir: %s" %(buildDir)
def parserUploadResult(jsonResult):
resultCode = jsonResult['code']
if resultCode == 0:
downUrl = DOWNLOAD_BASE_URL +"/"+jsonResult['data']['appShortcutUrl']
print "Upload Success"
print "DownUrl is:" + downUrl
else:
print "Upload Fail!"
print "Reason:"+jsonResult['message']
def uploadIpaToPgyer(ipaPath):
print "ipaPath:"+ipaPath
files = {'file': open(ipaPath, 'rb')}
headers = {'enctype':'multipart/form-data'}
payload = {'uKey':USER_KEY,'_api_key':API_KEY,'publishRange':'2','isPublishToPublic':'2', 'password':''}
print "uploading...."
r = requests.post(PGYER_UPLOAD_URL, data = payload ,files=files,headers=headers)
if r.status_code == requests.codes.ok:
result = r.json()
parserUploadResult(result)
else:
print 'HTTPError,Code:'+r.status_code
def buildProject(project, target, output):
buildCmd = 'xcodebuild -project %s -target %s -sdk %s -configuration %s build CODE_SIGN_IDENTITY="%s" PROVISIONING_PROFILE="%s"' %(project, target, SDK, CONFIGURATION, CODE_SIGN_IDENTITY, PROVISIONING_PROFILE)
process = subprocess.Popen(buildCmd, shell = True)
process.wait()
signApp = "./build/%s-iphoneos/%s.app" %(CONFIGURATION, target)
signCmd = "xcrun -sdk %s -v PackageApplication %s -o %s" %(SDK, signApp, output)
process = subprocess.Popen(signCmd, shell=True)
(stdoutdata, stderrdata) = process.communicate()
uploadIpaToPgyer(output)
cleanBuildDir("./build")
def buildWorkspace(workspace, scheme, output):
process = subprocess.Popen("pwd", stdout=subprocess.PIPE)
(stdoutdata, stderrdata) = process.communicate()
buildDir = stdoutdata.strip() + '/build'
print "buildDir: " + buildDir
buildCmd = 'xcodebuild -workspace %s -scheme %s -sdk %s -configuration %s build CODE_SIGN_IDENTITY="%s" PROVISIONING_PROFILE="%s" SYMROOT=%s' %(workspace, scheme, SDK, CONFIGURATION, CODE_SIGN_IDENTITY, PROVISIONING_PROFILE, buildDir)
process = subprocess.Popen(buildCmd, shell = True)
process.wait()
signApp = "./build/%s-iphoneos/%s.app" %(CONFIGURATION, scheme)
signCmd = "xcrun -sdk %s -v PackageApplication %s -o %s" %(SDK, signApp, output)
process = subprocess.Popen(signCmd, shell=True)
(stdoutdata, stderrdata) = process.communicate()
uploadIpaToPgyer(output)
cleanBuildDir(buildDir)
def xcbuild(options):
project = options.project
workspace = options.workspace
target = options.target
scheme = options.scheme
output = options.output
if project is None and workspace is None:
pass
elif project is not None:
buildProject(project, target, output)
elif workspace is not None:
buildWorkspace(workspace, scheme, output)
def main():
parser = OptionParser()
parser.add_option("-w", "--workspace", help="Build the workspace name.xcworkspace.", metavar="name.xcworkspace")
parser.add_option("-p", "--project", help="Build the project name.xcodeproj.", metavar="name.xcodeproj")
parser.add_option("-s", "--scheme", help="Build the scheme specified by schemename. Required if building a workspace.", metavar="schemename")
parser.add_option("-t", "--target", help="Build the target specified by targetname. Required if building a project.", metavar="targetname")
parser.add_option("-o", "--output", help="specify output filename", metavar="output_filename")
(options, args) = parser.parse_args()
print "options: %s, args: %s" % (options, args)
xcbuild(options)
if __name__ == '__main__':
main()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment