xcode

Strange errors when attempting to Symbolicate iOS crash report

荒凉一梦 提交于 2021-02-19 06:04:04
问题 I received a crash report from Apple, and followed these instructions to symbolicate it: How to symbolicate crash report from Apple received in .txt format not .crash format Unfortunately, I see errors when I execute step 7 ("./symbolicatecrash ..."), and don't find an SO question that addresses them: xcodebuild: error: SDK "xxxos" cannot be located. xcrun: error: unable to find utility "otool", not a developer tool or in PATH ## Warning: can't find tool named 'otool' in the xxxos SDK,

证书(Certificate)与描述文件(Provisioning Profiles)

a 夏天 提交于 2021-02-19 04:54:29
  在使用脚本xcodebuild自动打包的时候,会用到签名证书和描述文件,我在编译的时候搞了好长时间才搞明白,下面介绍如何得到正确配置。   证书:证书是用来给应用程序签名的,只有经过签名的应用程序才能保证他的来源是可信任的,并且代码是完整的, 未经修改的。在Xcode Build Setting的Code Signing Identity中,你可以设置用于为代码签名的证书。   .p12:因为直接从Apple下载的证书只有公钥,没有私钥。没办法证明这个证书是你的(没有办法证明你有这个权利)。而从本地钥匙串中导出的.p12文件是包含公钥和私钥的,也就是说可以把证书上描述的权利赋予他人。   描述文件:描述文件里包含了App ID , Certificates (证书), Devices(设备)。 说明生成描述文件需要用到这些信息。我们要打包或者在真机上运行一个应用程序,首先需要证书来进行签名,用来标识这个应用程序是合法的、安全的、完整的等等。然后需要指明它的App ID,并且验证Bundle ID是否与其一致。再次,如果是真机调试,需要确认这台设备能否用来运行程序。而Provisioning Profile就把这些信息全部打包在一起,方便我们在调试和发布程序打包时使用,这样我们只要在不同的情况下选择不同的profile文件就可以了。而且这个Provisioning

Certificates and provisioning profiles

百般思念 提交于 2021-02-19 04:29:05
问题 I am looking for a more thorough guide on what the different steps of code signing an application. I have read the guide which is available in the provisioning portal, but I do not grasp the concept of certificates and provisioning profiles and the difference between developer and distribution. In XCode there are also different schemes (using XCode 4). I do not understand the purpose of it. I have successfully uploaded an application to AppStore so I do not need a guide on how to do it. What

SwiftUI View does not updated when ObservedObject changed

眉间皱痕 提交于 2021-02-19 04:01:51
问题 I have a content view where i'm showing a list of items using ForEach @ObservedObject var homeVM : HomeViewModel var body: some View { ScrollView (.horizontal, showsIndicators: false) { HStack(spacing: 10) { Spacer().frame(width:8) ForEach(homeVM.favoriteStores , id: \._id){ item in StoreRowOneView(storeVM: item) } Spacer().frame(width:8) } }.frame(height: 100) } And my ObservableObject contains @Published var favoriteStores = [StoreViewModel]() And StoreViewModel is defined as below class

Resume CABasicAnimation using negative speed?

邮差的信 提交于 2021-02-19 02:55:20
问题 I resume my CABasicAnimation with the following code: CFTimeInterval pausedtime = layer.timeOffset; layer.speed = 1.0; layer.timeOffset = 0.0; layer.beginTime = [layer convertTime:CACurrentMediaTime() toLayer:nil] - pausedTime; which is pretty straightforward. At the very end of this article the author states that with negative speed value animation reverses. I can't understand what timeOffset and beginTime should look like in this case? P.S. I am aware that I can reverse animation by

Unable to add Siri capability in Xcode and apple developer centre too

有些话、适合烂在心里 提交于 2021-02-19 02:47:19
问题 I did a lot of research but didn't got any help. I am unable to add capability of 'Siri' in xcode and can't see any option in my apple developer account too, I am asked to purchase the membership instead. By any chance is it possible to create an app in iTunesConnect without making the payment of USD99. I just want to learn some new stuffs like Siri integration, but to do so I need to add the capability in app from developer account and to add an app I have to get enrolled and pay $99. Even

Mac App Sandbox Group Container problems

百般思念 提交于 2021-02-19 01:58:07
问题 I'm having some trouble with two Sandboxed applications in one Application Group. In my Entitlements file i have the following: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/ PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.application-groups</key> <array> <string>TEAM_ID.com.Company.AppName</string> </array> </dict> </plist> Where 'Company' and

Bringing iOS Frameworks through Carthage in Xcode 12.0

混江龙づ霸主 提交于 2021-02-18 20:56:38
问题 I am using Xcode 12.0 and Carthage 0.35.0 and when I do Carthage bootstrap --platform iOS or Carthage update --platform iOS --no-use-binaries on a framework that I have developed I get this error. I did not have this problem in Xcode 11.7. *** Building scheme "MyFrameworkKit" in MyFrameworkKit.xcodeproj Build Failed Task failed with exit code 1: /usr/bin/xcrun lipo -create /Users/myname/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/MyFrameworkKit

Bringing iOS Frameworks through Carthage in Xcode 12.0

ⅰ亾dé卋堺 提交于 2021-02-18 20:56:22
问题 I am using Xcode 12.0 and Carthage 0.35.0 and when I do Carthage bootstrap --platform iOS or Carthage update --platform iOS --no-use-binaries on a framework that I have developed I get this error. I did not have this problem in Xcode 11.7. *** Building scheme "MyFrameworkKit" in MyFrameworkKit.xcodeproj Build Failed Task failed with exit code 1: /usr/bin/xcrun lipo -create /Users/myname/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/MyFrameworkKit

Team City CI with Xcode workspace - Scheme “My Scheme” is not configured for running

僤鯓⒐⒋嵵緔 提交于 2021-02-18 20:52:31
问题 I have a workspace with few projects that must be built as static libraries and I have schemes with tests for them. I want to configure TeamCity to build and test each of those libraries, but it does not work with following error: ... /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace code/MyApplication/My Framework.xcworkspace -scheme One Of Tests TEST_AFTER_BUILD=YES clean build -configuration Debug -sdk iphonesimulator6.1 in directory: /Users/Me/TeamCity/buildAgent