xcode

NSCollectionView memory leak in High Sierra?

依然范特西╮ 提交于 2020-12-30 07:33:21
问题 I have noticed a memory leak in NSCollectionView through Instruments. When I track down to the code, it shows the specific line below: collectionView.makeItem(withIdentifier: identifier, for: indexPath) as? DisplayableCellProtocol Then I looked it in Xcode, memory debugger, and find out there are some non-referenced items that caused the leak. However, not all items created by makeItem is leaking, some of them are normal, but some are not even shown. Managed normal unleaked item is like this

NSCollectionView memory leak in High Sierra?

血红的双手。 提交于 2020-12-30 07:31:58
问题 I have noticed a memory leak in NSCollectionView through Instruments. When I track down to the code, it shows the specific line below: collectionView.makeItem(withIdentifier: identifier, for: indexPath) as? DisplayableCellProtocol Then I looked it in Xcode, memory debugger, and find out there are some non-referenced items that caused the leak. However, not all items created by makeItem is leaking, some of them are normal, but some are not even shown. Managed normal unleaked item is like this

NSCollectionView memory leak in High Sierra?

依然范特西╮ 提交于 2020-12-30 07:31:44
问题 I have noticed a memory leak in NSCollectionView through Instruments. When I track down to the code, it shows the specific line below: collectionView.makeItem(withIdentifier: identifier, for: indexPath) as? DisplayableCellProtocol Then I looked it in Xcode, memory debugger, and find out there are some non-referenced items that caused the leak. However, not all items created by makeItem is leaking, some of them are normal, but some are not even shown. Managed normal unleaked item is like this

NSCollectionView memory leak in High Sierra?

元气小坏坏 提交于 2020-12-30 07:30:18
问题 I have noticed a memory leak in NSCollectionView through Instruments. When I track down to the code, it shows the specific line below: collectionView.makeItem(withIdentifier: identifier, for: indexPath) as? DisplayableCellProtocol Then I looked it in Xcode, memory debugger, and find out there are some non-referenced items that caused the leak. However, not all items created by makeItem is leaking, some of them are normal, but some are not even shown. Managed normal unleaked item is like this

React Native on Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64

僤鯓⒐⒋嵵緔 提交于 2020-12-30 02:44:06
问题 I'm trying to build a React Native project on a Mac Book Pro with a M1 architecture, for iOS simulator. The project built nicely on Intel architecture. It also build on device and archive well on M1. But not on simulator. I had this classical error when switching to the M1 chipset. in /project-folder/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/project-folder/ios/Pods/OpenSSL-Universal/ios/lib

React Native on Apple Silicon M1 - The linked library 'libPods-ProjectName.a' is missing one or more architectures required by this target: x86_64

江枫思渺然 提交于 2020-12-30 02:44:04
问题 I'm trying to build a React Native project on a Mac Book Pro with a M1 architecture, for iOS simulator. The project built nicely on Intel architecture. It also build on device and archive well on M1. But not on simulator. I had this classical error when switching to the M1 chipset. in /project-folder/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/project-folder/ios/Pods/OpenSSL-Universal/ios/lib

Why xcode can't see these files, however they physically exist

☆樱花仙子☆ 提交于 2020-12-29 09:16:39
问题 Xcode run into compilation error while running the code. Unfortunatetly I was not able to find a solution online. These steps that I have commenced: => git merge branch-name => can't find the files => git checkout branch-name file-name => files were physically found => xcode can't see it ??? 回答1: You have to add them to your project at File -> Add Files To "Your Project" btw: Your project folder in Xcode does not necessarily reflect your actual folder structure you see in finder. Edit: if you

Xcode 9 - Test target X encountered an error (Unable to connect to Test Manager)

柔情痞子 提交于 2020-12-29 08:59:21
问题 I'm trying to run some of my Unit Tests but it kept giving me error: Showing Recent Issues Test target X encountered an error (Unable to connect to test manager on d7306c4130298fbc17bc0985ec02f808dcdc1374 If you believe this error represents a bug, please attach the log file at /var/folders/2h/0y4yjs6s7l307mbr6pk1xdl00000gn/T/com.apple.dt.XCTest/IDETestRunSession-CF80FA05-C8ED-4FCE-A04B-4A8070F21059/X-E8F39B10-0CDC-43D5-9BED-CD2D0F6081DA/Session-X-2018-01-08_161733-D3YlRc.log) I've tried

Xcode 9 - Test target X encountered an error (Unable to connect to Test Manager)

让人想犯罪 __ 提交于 2020-12-29 08:57:19
问题 I'm trying to run some of my Unit Tests but it kept giving me error: Showing Recent Issues Test target X encountered an error (Unable to connect to test manager on d7306c4130298fbc17bc0985ec02f808dcdc1374 If you believe this error represents a bug, please attach the log file at /var/folders/2h/0y4yjs6s7l307mbr6pk1xdl00000gn/T/com.apple.dt.XCTest/IDETestRunSession-CF80FA05-C8ED-4FCE-A04B-4A8070F21059/X-E8F39B10-0CDC-43D5-9BED-CD2D0F6081DA/Session-X-2018-01-08_161733-D3YlRc.log) I've tried

How can I run my performance tests more than ten times?

故事扮演 提交于 2020-12-29 05:14:41
问题 By default Xcodes performance tests are run ten times and my result is the average of those ten tests. The problem is the averaged result varies considerably each time I run it so I have to run the test at least five times to get a converged result. This is both tedious and time consuming; is there a way to configure either XCode or the unit test itself to run more than ten times? 回答1: In the latest Xcode (11.0+) you don't need swizzling to change iterations count. Use the following function: