1.部署到真機異常 dyld`dyld_fatal_error:
-> 0x120015088 <+0>: brk #0x3
dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
Referenced from: /var/mobile/Containers/Bundle/Application/E1AC6933-4A9B-4A0B-B
解決方案:將引用的庫同時引用到Embedded Binaries
2 undefined symbols for architecture armv7 referenced from
解決方案:在Build Phases的Link Binary With Libraries中添加丟失的庫
3.ld: warning: directory not found for option
解決方案:刪除Search Paths里的錯誤項/ Framework Search Paths/Library Search Paths
4.swift項目中:no rule to process file ‘a’ of type sourcecode.c.h for architecture arm64
解決方案:在Build Phase的Compile Sources里去除掉.h的文件
5.this class is not key value coding-compliant for the key xxx
出現這個錯誤的的原因是刪除了代碼的屬性,沒有刪除視圖中IBOutlet
6.(null): error: /Users/xxx/Documents/xxx/PhotoBrowser: No such file or directory
清除已刪除的項 Build Phases > CopyBundleResources
7.No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “xxx” were found.
這個錯誤是unity打包出來的解決方案,試試更改Boundle identifier在重新Build 一份。
持續更新!
8 Users/eliteenergy/Downloads/projectName/Pods/Target Support Files/Pods/Pods-frameworks.sh
終端輸入以上路徑 chmod a+x [path]
9 A valid provisioning profile for this executable was not found
This happened to me yesterday. What happened was that when I added the device Xcode included it in the wrong profile by default. This is easier to fix now that Apple has updated the provisioning portal:
- Log in to developer.apple.com/ios and click Certificates, Identifiers & Profiles
- Click devices and make sure that the device in question is listed
- Click provisioning profiles > All and select the one you want to use
- Click the edit button
- You will see another devices list which also has a label which will probably say "3 of 4 devices selected" or something of that nature.
- Check the select all box or scroll through the list and check the device. If your device was unchecked, this is your problem.
- Click "Generate"
- DON'T hit Download & Install – while this will work it's likely to screw up your project file if you've already installed the provisioning profile (see this question for more info).
- Open Xcode, open the Organizer, switch to the Devices tab, and hit the Refresh button in the lower right corner. This will pull in the changes to the provisioning profile.
Now it should work.