点击应用程序图标后,iOS ipa即被终止

时间:2014-11-17 16:04:11

标签: ios xcode xcode6 osx-yosemite ipa

我通过CI系统构建我的ipa。它运作良好,我的ipa像往常一样生成。

但是当我在设备上安装它,然后点击应用程序图标时,应用程序就会启动并直接被杀死。当应用程序构建在我的macmini(OSX 10.10,Xcode 6.1)上时,我有这种行为。

当我在我的mac(OSX 10.10,Xcode 6.1)上使用相同的命令行构建应用程序时,该应用程序在我的iPhone上运行良好。

任何想法,为什么它不适用于macmini?它曾经运作良好,但是从2个月开始,它正在做这个奇怪的事情。

在两台Mac上,我都有正确的证书和mobileprovision。我检查了生成的ipa,两者都有带有正确UDID的embedded.mobileprovision。

以下是构建ipa的代码:

xcodebuild -workspace MyProject.xcworkspace -scheme "MyScheme" -destination=build -configuration Release -sdk iphoneos7.0 ONLY_ACTIVE_ARCH=YES clean build archive


# Common path and partial filename
ARCHIVE_BASEPATH="${HOME}/Library/Developer/Xcode/Archives/$(date +%Y-%m-%d)/${XCODE_SCHEME}"

# Find the latest .xcarchive for the given scheme
NEW_ARCHIVE=$(ls -td "${ARCHIVE_BASEPATH}"* | head -n 1)

# Export 
xcodebuild -exportArchive -exportFormat "IPA" -archivePath "$NEW_ARCHIVE" -exportPath ./MyAPP.ipa -exportProvisioningProfile "My Distribution provisionning profile"

[更新]以下是崩溃的日志:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread:  0

Dyld Error Message:
  Library not loaded: @rpath/libswiftAssetsLibrary.dylib
  Referenced from: /private/var/mobile/Containers/Bundle/Application/03823DE6-B2FD-4A2D-B03F-3770D433CBCA/Lima.app/Lima
  Reason: no suitable image found.  Did find:
/private/var/mobile/Containers/Bundle/Application/03823DE6-B2FD-4A2D-B03F-3770D433CBCA/Lima.app/Frameworks/libswiftAssetsLibrary.dylib: mmap() error 1 at address=0x00871000, size=0x00004000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/03823DE6-B2FD-4A2D-B03F-3770D433CBCA/Lima.app/Frameworks/libswiftAssetsLibrary.dylib
  Dyld Version: 353.5

谢谢!

0 个答案:

没有答案